GoldLine Posted September 15, 2020 Share Posted September 15, 2020 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. Link to comment Share on other sites More sharing options...
Sherzod Posted September 15, 2020 Share Posted September 15, 2020 17 minutes ago, GoldLine said: Any solution for this ??? Hi, Can we reproduce this issue? Link to comment Share on other sites More sharing options...
GoldLine Posted September 15, 2020 Author Share Posted September 15, 2020 I've made a simple testcase with 2 datetime pickers. Problem happens under iPhone by repeated select date selections. BUG.rar Link to comment Share on other sites More sharing options...
Sherzod Posted September 15, 2020 Share Posted September 15, 2020 Ok thanks, We will check. Link to comment Share on other sites More sharing options...
Sherzod Posted September 15, 2020 Share Posted September 15, 2020 1 hour ago, GoldLine said: BUG.rar You have not attached all project files. Link to comment Share on other sites More sharing options...
Sherzod Posted September 15, 2020 Share Posted September 15, 2020 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 More sharing options...
GoldLine Posted September 16, 2020 Author Share Posted September 16, 2020 Great, works perfect. Thanks a lot, Sherzod!!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts