-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit cases where "required" attribute is used on checkboxes (#1194)
Fixes #338 If the "required" attribute is applied to a checkbox, then HTML5 validation will only pass if the checkbox is ticked. This is at odds with the JSON schema definition of "required" that simply requires that the key exists. This PR will make it so that the "required" HTML5 attribute will only be applied if the schema uses `{ const: true }` or `{ enum: [ true ] }`. Signed-off-by: Lucian <lucian.buzzo@gmail.com>
- Loading branch information
1 parent
1651066
commit 2a6b830
Showing
2 changed files
with
145 additions
and
1 deletion.
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