- Issue created by @Nuuou
- ππΊHungary nagy.balint
Thanks for the report.
Is it possible for you to provide the value of the "Apply Chosen to the following elements" in admin/config/user-interface/chosen ?
It would not work when that field is empty, but not sure if there are other edge cases.
- πΊπΈUnited States Nuuou Lincoln, NE
Ah! That field is indeed empty (and was with my 4.x usage too).
I see that the default configuration (config/install/chosen.settings.yml
) is meant to be the value'select:visible'
.Setting that value back to the module's default, everything now works for me!
I'm curious why my empty selector ever worked in 4.x, so I assume something changed in that during the 5.x release.
Regardless, I think this can be closed unless anyone sees anything actionable for future updaters!
- ππΊHungary nagy.balint
Maybe if you have the chosen_field module enabled, that could apply it, if the widget is specifically selected for the field.
Just in case we could still fix of course to continue to work for empty value in "Apply Chosen to the following elements", likely I could just check if the selector is empty, and skip that part of the code, but then it is likely not very urgent.
- πΊπΈUnited States Nuuou Lincoln, NE
Yep, I do have "chosen_field" module enabled and the "Chosen" widget selected for my field. Honestly I expected that to just handle it since it was an explicit widget choice!
I do think that improving this so it doesn't throw console errors for an empty selector would be a good idea!
-
nagy.balint β
committed 9c50a8a3 on 5.0.x
Issue #3509208 by nuuou, nagy.balint: JavaScript error on all Chosen...
-
nagy.balint β
committed 9c50a8a3 on 5.0.x
Automatically closed - issue fixed for 2 weeks with no activity.