Closed (fixed)
Project:
Select (or other)
Version:
4.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2025 at 22:44 UTC
Updated:
30 Nov 2025 at 11:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
vensiresThe MR fixes the issue.
Attaching patch for use in composer-patches directive until this is fixed.
Comment #4
vensiresThere is a small case this change was intended to fix #3171843: Multiple-value checkboxes do not render existing values though I doubt since it was altered in a completely different issue.
In any case, you might want to also check that issue too... just in case!
Thank you!
Comment #5
ivnishI fixed this because IMHO, it doesn't work properly. Now with my fix:
Your code:
Comment #6
vensiresI think we need more feedback from other users…
The experience I have from my site is not the same you show in your gif.
I will try to reproduce in a simplytest environment next week and come back here.
Comment #7
vensiresI just tried this in a completely new Drupal 11 installation with nothing else installed but the Standard profile and this module.
I set the "Tags" field of the "Article" content type to use "Select or other" formatter. The rendered widget was this one; only the Other field:
After installing the "cweagans/composer-patches" package and my patch from above, I get the following widget:
In case you need it, I attach my configuration too.
Comment #8
ivnishOk, I understand now. My code fixed the "List" field, but broke Entity reference field. It can affect a lot of existing sites and I think we need to revert my fix. Thanks!
Comment #10
ivnishComment #12
vensiresThank you for the quick fix @ivnish
Do we have another issue for the list? This one maybe: #3171843: Multiple-value checkboxes do not render existing values?
So that we continue the discussion there over that topic.
Comment #13
ivnishI tested checkboxes, they work fine