-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Adds a prop that keeps the DayPicker open when you select a date #157
Conversation
lgtm thanks! |
@@ -47,6 +47,7 @@ const defaultProps = { | |||
disabled: false, | |||
required: false, | |||
reopenPickerOnClearDates: false, | |||
keepOpen: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe keepOpenOnSelect
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after one change
@@ -70,12 +70,17 @@ storiesOf('SingleDatePicker', module) | |||
showClearDate | |||
/> | |||
)) | |||
.add('with clear dates button (Picker Displayed)', () => ( | |||
.add('eopens DayPicker on clear dates', () => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/eopens/reopens
649f8da
to
cec8f48
Compare
Addressed comments! PTAL @ljharb |
cec8f48
to
a435fb2
Compare
a435fb2
to
44ba968
Compare
This also fixes #62 |
…he DRP or the SDP
44ba968
to
e578253
Compare
to: @moonboots @airbnb/webinfra
The prop needs a better name. Also this needs tests. But I'm literally dying.
However, this behavior was pretty easy to implement so that's cool.