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

Add optional clear button to date picker control #13669

Merged
merged 3 commits into from Mar 10, 2017
Merged

Conversation

aoby
Copy link
Contributor

@aoby aoby commented Mar 8, 2017

When the new clearable property is set, and the date picker has a value, it now displays an X on the right that clears the date on click:

image

This is used in the workshop filter UI (#13674)


// These properties are set from ReactDatePicker, expected on the customInput.
// Pass them through to the appropriate controls below.
onChange: React.PropTypes.func,
onClick: React.PropTypes.func,
value: React.PropTypes.string,
onBlur: React.PropTypes.func
onBlur: React.PropTypes.func,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

, necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, must be leftover from something. Will remove

@aoby aoby merged commit 179fc45 into staging Mar 10, 2017
@aoby aoby deleted the date-picker-clear-button branch March 10, 2017 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants