-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DatePicker] Made sure we don't close the date picker when switching months with the autoOk prop set to true #830
Conversation
Added isNavigation to _setSelectedDate() to make sure we don't close the datepicker when navigating and not picking
Added isNavigation to _onSelectedDate() to make sure we don't close the date picker when switching months with the autoOk prop set to true.
Yeh, I'm not even sure why e is needed for _setSelectedDate. Also, it might be better to just expose the onDayTouchTap in the calendar component instead of keeping track of navigation events? That way dialog window can bind to it and close itself. Thanks @matiaslarsson |
OK @hai-cea, will have a look when I get back from my vacation and create a new PR if I can. |
Was just going to fix this myself and decided to check if anyone was working on it! Thanks for fixing it! |
My patch-2 branch was a mess so I have a new pull request for you at #1243. |
Replaced by #1243 |
Did not refactor the weird func(date, e) and func(e, date) in some functions since I'm not aware of how it's used throughout the library.