-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(form): Maintain Floating Label for Invalid Numbers
Browsers will try to prevent invalid characters from being entered into an `<input type="number" />`, but they are unable to prevent numbers like: `"--00"`, `"0-0"`, or `"123-"`. When these types of numbers are entered, the input actually reports the value as the empty string instead of the current text value which caused the floating label to cover the input when blurred.
- Loading branch information
Showing
2 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters