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

Adding option for selectedDate not to be null. #45

Closed
milostimotic opened this issue Jan 24, 2018 · 1 comment
Closed

Adding option for selectedDate not to be null. #45

milostimotic opened this issue Jan 24, 2018 · 1 comment
Assignees

Comments

@milostimotic
Copy link

When date is selected, and when it is clicked again, selectedDate will be set to null. My suggestion is to add some option so users can choose if selectedDate can be null or can not.

@nathanreyes nathanreyes self-assigned this Jan 29, 2018
nathanreyes pushed a commit that referenced this issue Feb 9, 2018
@nathanreyes
Copy link
Owner

As of v0.6.0, you can use the is-required prop to prevent null selections by the user (via input element or selections).

Note: You still need to provide it a non-null value on initialization. Also, you can still set the value to null via code.

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

No branches or pull requests

2 participants