-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds optional showErrorOnBlurOnly prop to TextInput2
When this prop is set to true, error state will only be shown after the input is "dirty" (value has been modified by user) and focus has been removed from the input element. Adds new local state "isInputDirty" to help manage this functionality. Error state can still be removed while the input is in focus, which is consistent with the current functionality.
- Loading branch information
1 parent
9f87706
commit 2d68ce6
Showing
3 changed files
with
122 additions
and
4 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
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