Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

matias-sandell
Copy link
Contributor

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.

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.
@hai-cea
Copy link
Member

hai-cea commented Jun 13, 2015

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

@matias-sandell
Copy link
Contributor Author

OK @hai-cea, will have a look when I get back from my vacation and create a new PR if I can.

@TimothyKrell
Copy link

Was just going to fix this myself and decided to check if anyone was working on it! Thanks for fixing it!

@hai-cea hai-cea changed the title Made sure we don't close the date picker when switching months with the autoOk prop set to true [DatePicker] Made sure we don't close the date picker when switching months with the autoOk prop set to true Jun 19, 2015
@matias-sandell
Copy link
Contributor Author

My patch-2 branch was a mess so I have a new pull request for you at #1243.

@hai-cea
Copy link
Member

hai-cea commented Jul 22, 2015

Replaced by #1243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants