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

Date input needs a clear button on safari #588

Open
AbandonedFridge opened this issue Jan 25, 2024 · 0 comments
Open

Date input needs a clear button on safari #588

AbandonedFridge opened this issue Jan 25, 2024 · 0 comments

Comments

@AbandonedFridge
Copy link
Member

AbandonedFridge commented Jan 25, 2024

Safari(desktop) date picker doesn't have a clear button and clearing the field manually results in a badInput flag getting set on the native input's validity object which will force the input into an invalid state, even after reset and even if it's not required. The only way I've found to clear it is to give it a valid value and then clear the input programmatically.

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

No branches or pull requests

1 participant