Property 'required' makes form unusable
See original GitHub issueWhen a Choice is ‘required’ but not valid an error is thrown in the console:
An invalid form control with name='...' is not focusable.
The error cancels the form submit event.
Example: https://jsbin.com/xixupew/6
btw. The required property is not inherited from the original tag
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:10
Top Results From Across the Web
Property 'required' makes form unusable · Issue #338 - GitHub
I've solved the problem by removing the required property from the form element and stored the required Choice in memory. With a 'submit' ......
Read more >Unusable Personal Property Definition - Law Insider
Unusable Personal Property means Authority property other than real property which has become permanently useless to the Authority through damage, obsolescence ...
Read more >Validation | required="true" / "false" | HTML form - Stack Overflow
It assumes the value of true once it is present. therefore setting it to a 'false' still makes it act as though it...
Read more >Client-side form validation - Learn web development | MDN
A field is invalid if it has a value and that value has fewer characters than the minlength value or more than the...
Read more >2021 Instructions for Form 4797 - IRS
Report the gain including any depreciation recapture required by sections 1245 and 1250 as it would otherwise be reported if you were not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you want to keep your required attribute with a native html5 validation behaviour: https://github.com/jshjohnson/Choices/issues/449
A solution could be to move the name + id + required (and other attributes) from the original select to the input. choices__input