I'm using the date picker from the Creator Kit. I have a text input that displays the selected date. In the text input OnSelect property I am setting a variable to make the calendar visible.
When I first click on txtDateEntry it briefly displays the calendar then immediately hides. It is obviously triggering the OnChange just by clicking on txtDateEntry. Subsequent clicks on txtDateEntry display the calendar and it doesn't hide until a date is selected. I can't work out how to prevent this happening.

txtDateEntry.OnSelect
UpdateContext({varShowCal: true})
Calendar1.Visible
varShowCal
Calendar1.OnChange
UpdateContext({varShowCal: false})