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

Update Date and Time pickers for better text input experience. #580

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rabbitism
Copy link
Member

@rabbitism rabbitism commented Feb 19, 2025

Before this PR, DatePicker/DateRangePicker/TimePicker/TimeRangePicker/DateTimePicker text editing experience is just horrible.

This PR resolves multiple issues:

  1. Make all controls focusable to improve a11y.
  2. Editing text follows the rule:
    • While editing, picker tries to parse text and update corresponding DateTime value. if text is valid, value is updated, if text is not valid, value remains, and text remains.
    • When user press Enter or picker lost focus, parse text and update corresponding value. if text is not valid, text will be cleared.
  3. Fix TimeRangePicker ClearButton style issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant