Calendar is shown when refocus window
Hi,
How to reproduce (works on the demo site aswell):
- Select a date in the calendar
- Switch to another window, or another browser tab, and then back again.
- Now the calendar pops out.
Anyone knows how do disable so that the calendar wont pop out again?
Thanks
The calendar will pop out again, because the input field of the datepicker regains focus (default browser behaviour), which triggers the open state.
Possible solution: Let the calendar only pop out on click of the input element. But then the calendar won't pop out on keyboard navigation. This could be solved by changing the default behaviour of e.g. the ArrowDown event (if calendar is not visible pop it out, otherwise add 1 week).
I would submit a PR if it's ok to change the default behaviour.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.