InputBase: Add minLength, maxLength, required#1050
Open
olleolleolle wants to merge 7 commits into
Open
Conversation
2ef7a4f to
70bfd5b
Compare
70bfd5b to
6c33b64
Compare
- New API: onValidityChange(newValidity) - This propagates to given this.props.onValidityChange - There is much to do to get this in place everywhere
02c5e79 to
5ee72c4
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds validation settings to individual form elements.
Using HTML attributes, we rely on the browser's input validity features.
Example:
How to make a Pane validatable:
constraints={ { minLength: 5, maxLength: 30, required: true } }to a Form fieldisValidstate to the Form containing the fieldSee #43