[BUG]: Calendar OnChange is triggered automatically at the first visibility! #310
Labels
bug
Something isn't working
Component: Calendar
👋 needs author feedback
Waiting on a response from the author
Describe the bug
Calendar OnChange is triggered automatically at the first visibility!
To Reproduce
Steps to reproduce the behavior:
Add a textinput box and Calendar componet in screen, set propertie as below. When I first click on textbox it briefly displays the calendar then immediately hides, the notification pop up as well. It is obviously OnChange event is fired automatically at the first visibility!
txtSelectedDate.OnSelect: UpdateContext({varShowCal:!varShowCal})
Calendar.OnChange: Notify("Calendar OnChange Fired!");UpdateContext({varShowCal:false})
datePicker.OnVisible: varShowCal
Expected behavior
Calendar.OnChange won't be triggered automatically at the first visibility!
Screenshots
Additional context
Community Post: https://powerusers.microsoft.com/t5/Building-Power-Apps/Creator-Kit-Date-Picker-Hide-OnChange/td-p/1910923
The text was updated successfully, but these errors were encountered: