The new creator kit data picker looks great but I'm struggling to get it to behave in a useable manner. I want to be able to click on a text field which displays the picker and when the user selects a date the picker hides. I have implemented this using the method outlined below, but when the user first clicks the text control the calendar shows briefly then hides immediately. Subsequent clicks work fine.
I have a text field that when selected toggles the visibility of the date picker. Selecting a date in the picker hides the date picker.
txtSelectedDate.OnSelect
UpdateContext({varShowCal:!varShowCal})
datePicker.OnChange
UpdateContext({varShowCal:false})
datePicker.OnVisible
varShowCal
The OnChange of the calendar must be firing when clicking on the text control. Not sure if this could be considered a bug or how to get around it.
I previously implemented this very method in another app and it is still working as intended despite the kit being updated. I've even copied it directly from my old app to the new app and it breaks!
Hi @Digital ,
OnSelect is a bit dangerous with double-clicks in Text fields. Have you considered OnChange ?
User | Count |
---|---|
125 | |
87 | |
84 | |
75 | |
69 |
User | Count |
---|---|
215 | |
179 | |
142 | |
109 | |
83 |