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

Adds a prop that keeps the DayPicker open when you select a date #157

Merged
merged 1 commit into from
Nov 3, 2016

Conversation

majapw
Copy link
Collaborator

@majapw majapw commented Nov 2, 2016

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.

@moonboots
Copy link
Collaborator

lgtm thanks!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.333% when pulling 649f8da on maja-dont-autoclose-the-datepicker into e4cbdc0 on master.

@@ -47,6 +47,7 @@ const defaultProps = {
disabled: false,
required: false,
reopenPickerOnClearDates: false,
keepOpen: false,
Copy link
Member

Choose a reason for hiding this comment

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

maybe keepOpenOnSelect?

Copy link
Member

@ljharb ljharb left a 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', () => (
Copy link
Member

Choose a reason for hiding this comment

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

s/eopens/reopens

@ljharb ljharb added the semver-minor: new stuff Any feature or API addition. label Nov 2, 2016
@majapw majapw force-pushed the maja-dont-autoclose-the-datepicker branch from 649f8da to cec8f48 Compare November 2, 2016 19:27
@majapw
Copy link
Collaborator Author

majapw commented Nov 2, 2016

Addressed comments! PTAL @ljharb

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.333% when pulling cec8f48 on maja-dont-autoclose-the-datepicker into e4cbdc0 on master.

@majapw majapw force-pushed the maja-dont-autoclose-the-datepicker branch from cec8f48 to a435fb2 Compare November 2, 2016 21:54
@majapw majapw force-pushed the maja-dont-autoclose-the-datepicker branch from a435fb2 to 44ba968 Compare November 2, 2016 23:08
@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.333% when pulling 44ba968 on maja-dont-autoclose-the-datepicker into 213f268 on master.

@majapw
Copy link
Collaborator Author

majapw commented Nov 2, 2016

This also fixes #62

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.333% when pulling 44ba968 on maja-dont-autoclose-the-datepicker into 213f268 on master.

@majapw majapw force-pushed the maja-dont-autoclose-the-datepicker branch from 44ba968 to e578253 Compare November 3, 2016 01:22
@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.726% when pulling e578253 on maja-dont-autoclose-the-datepicker into e539dfe on master.

@majapw majapw merged commit 85c97b1 into master Nov 3, 2016
@majapw majapw deleted the maja-dont-autoclose-the-datepicker branch November 3, 2016 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor: new stuff Any feature or API addition.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants