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

feature: hide datepicker after user choosed a day #31

Open
thg303 opened this issue Aug 9, 2017 · 4 comments
Open

feature: hide datepicker after user choosed a day #31

thg303 opened this issue Aug 9, 2017 · 4 comments

Comments

@thg303
Copy link
Contributor

thg303 commented Aug 9, 2017

Looks like user should click somewhere out to hide the datepicker, it would be great if it could be set via a property, like closeOnSelect on DatePicker component and default value set to false

@fereshtehaboohamzeh
Copy link

is it possible to close datepicker after selectection?

@thg303
Copy link
Contributor Author

thg303 commented Feb 18, 2019

@fereshtehaboohamzeh that's what this PR do, you may use the fork until this merged by @mohebifar as I said you have to set closeOnSelect={true} to the component like this:

<Datepicker closeOnSelect={true} ...>
...

@omidgharib
Copy link

same issue here

@omidgharib
Copy link

I find a trick use refs and after that using refName.state.isOpen = false in onChange method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants