Closed (fixed)
Project:
Chosen
Version:
5.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2023 at 14:29 UTC
Updated:
5 May 2026 at 09:55 UTC
Jump to comment: Most recent
The fix for the issue reported in #2705891: Client-side-validation broken with Chosen seems to not work (anymore), I'm still getting the following error in the Chrome console:
An invalid form control with name='field_test[]' is not focusable.
document.getElementById('xxxx').value = ''The last suggested fix in the upstream issue does seem to fix the issue.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dieterholvoet commentedCommitted a fix, tested with the latest Chrome and Firefox.
Comment #4
nagy.balint commentedHi!
Are you using the JJJ fork of chosen?
I see this commit https://github.com/JJJ/chosen/pull/15 but then I guess that was not enough to fix the issue?
Comment #5
nagy.balint commentedComment #6
artis.bajars commentedThis issue also exists in the 5.x branch of Chosen that's using
noli42/chosenlibrary. The fix suggested here does not apply anymore. Should this be addressed in the module or upstream?Comment #7
artis.bajars commentedComment #8
nagy.balint commentedIf possible it should be fixed in the library
https://github.com/noli42/chosen
Comment #9
nagy.balint commentedLets hope that the 3.0.4 version of the lib fixes the issue without side effects.
Comment #11
nagy.balint commented