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

[DateInput] Clear selected date on deselect when time precision specified #1300

Merged
merged 2 commits into from
Jun 29, 2017

Conversation

cmslewis
Copy link
Contributor

Fixes #1246

Checklist

  • Include tests

Changes proposed in this pull request:

On deselect in DateInput with time precision specified, this PR now properly clears the selected date in the calendar. The bug was specifically with controlled usage of the DateTimePicker: when nextProps.value == null, we weren't setting this.state.dateValue to null for some reason.

Reviewers should focus on:

Give it a try in the dev preview.

Screenshot

dateinput-1246

@cmslewis cmslewis added this to the 1.22.0 milestone Jun 29, 2017
@blueprint-bot
Copy link

Fix broken test

Preview: documentation
Coverage: core | datetime

@cmslewis cmslewis merged commit 68cfd7d into master Jun 29, 2017
@cmslewis cmslewis deleted the cl/dateinput-1246 branch June 29, 2017 19:07
@llorca llorca mentioned this pull request Jul 5, 2017
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.

3 participants