Select2 dropdown An invalid form control with name='' is not focusable.
See original GitHub issueWhen dropdown field is required and empty and all other fields are correctly filled up, clicking a save button results in An invalid form control with name='dropdown' is not focusable.
in js console, the form is not submitted, and nothing happens.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
An invalid form control with name='' is not focusable
This issue occurs on Chrome if a form field fails validation, but due to the respective invalid control not being focusable the browser's...
Read more >An Invalid Form Control with Is Not Focusable Error Occurs
An Invalid Form Control is Not Focusable error occurs when working with the Kendo UI ComboBox and Kendo UI Validator.
Read more >An invalid form control with name='fieldname' is not focusable.
An invalid form control with name ='fieldname' is not focusable. I have a bootstrap tab surrounds by a form tab, if i change...
Read more >How to Fix 'An invalid form control with name=" " is not focusable'
Are you getting the "An invalid form control with name=' ' is not focusable." error? Here's the cause and how to fix it....
Read more >[Select element] An invalid form control with name='...' is not ...
[Select element] An invalid form control with name='...' is not focusable. ; Closed (works as designed) ; Project: Webform ; Version: 8.x-5.x-dev.
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 Free
Top 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
This is my quick solution.
CSS-rule:
Result on submit form which contains select2 element with required attribute:
None of these solved this issue in my case. I have no such an item in the DOM like
.select2-hidden-accessible[required]
. Does anyone have up to date solution for this?