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] No longer defaults to Today with time precision enabled #1349

Merged
merged 3 commits into from
Jul 14, 2017

Conversation

cmslewis
Copy link
Contributor

@cmslewis cmslewis commented Jul 14, 2017

Fixes #1246 (again)

Checklist

  • Include tests

Changes proposed in this pull request:

  • Fixed DateInput with time precision enabled no longer defaults to Today when popover re-opens with controlled value === null
    • Note: If you deselect a date and then close the popover, the time fields will be cleared as well on re-open.

Reviewers should focus on:

Fixing the time fields (to not clear on popover re-open) would require more plumbing work, and I wasn't sure what the best UX was. @llorca? I also wanted to bias toward getting this quick fix submitted.

Screenshot

2017-07-14 09 14 17

@cmslewis cmslewis added this to the 1.23.0 milestone Jul 14, 2017
@cmslewis cmslewis requested review from llorca and giladgray July 14, 2017 16:15
@blueprint-bot
Copy link

Oops, fix syntax in test

Preview: documentation
Coverage: core | datetime

@llorca llorca changed the title Cl/dateinput 1246 [DateInput] No longer defaults to Today with time precision enabled Jul 14, 2017
Copy link
Contributor

@llorca llorca left a comment

Choose a reason for hiding this comment

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

Cool with that! Next time we do some design on that front, we should try to integrate time into the input (when time precision is enabled) to increase clarity. Right now, if you have a time selection, it's not reflected in the input.

@cmslewis cmslewis merged commit 7e8b4d4 into master Jul 14, 2017
@cmslewis cmslewis deleted the cl/dateinput-1246 branch July 14, 2017 17:51
@llorca llorca mentioned this pull request Jul 14, 2017
giladgray pushed a commit that referenced this pull request Jul 19, 2017
…1349)

* Today's date stays deselected on open

* Add test for value=null

* Oops, fix syntax in test
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