Jump to content

BUG in TUnimDatePicker


GoldLine

Recommended Posts

Hi 

TUnimDatePicker have a bug sometimes show selection menu at year 2039 although the selected date as in the screen shoot show 27/06/2019, this mainly happen after the form leases focus by showing a side menu or something like that.

Using unim-1.90.0.1535

Any solution for this ???

Thanks.

1078127083_WhatsAppImage2019-06-28at1_25_21PM.jpeg.35fa3d318d72c37e149ca4aaaa307033.jpeg

Link to comment
Share on other sites

2 hours ago, GoldLine said:

Problem happens under iPhone by repeated select date selections.

Can you try to use this code?

function afterCreate(sender)
{
    let me = sender;
    let _datepicker = me.getPicker();

    if (_datepicker) {
        _datepicker.on("show", function() {
            let _date = me.getValue();

            if (_date) {
                Ext.defer(function() {
                    me.getPicker().setValue(_date)
                }, 250);
            }
        })
    }
}

 

Link to comment
Share on other sites

×
×
  • Create New...