Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fantastic module! Makes the forms so much more elegant.
Just a small bug report: When used with http://drupal.org/project/field_group the select elements breaks in tabs and get impossible to use.
Comment | File | Size | Author |
---|---|---|---|
#10 | chosen select better on claro.png | 59.86 KB | byrond |
#9 | chosen select too narrow.png | 100.43 KB | byrond |
#5 | chosen select issue when edit content.png | 29.82 KB | pippopeppe |
Comments
Comment #1
XanoJust a short note to let you know this may be an issue with the original JavaScript library and not with this module. If you use a different theme, does the problem persist?
Comment #2
Cyclodex CreditAttribution: Cyclodex commentedThe latest version seems to work fine with this. Otherwise reopen this please.
Comment #3
czigor CreditAttribution: czigor commentedIf at admin/config/user-interface/chosen "Apply Chosen to the following elements" is set to select:visible and the chosen multiple select is inside a collapsed fieldset then only one item can be selected in the select (though it looks like a multiple chosen select).
Steps to reproduce:
1. Install field_group and chosen.
2. Create a content type with a List (float) field. Let the field be Unlimited, apply Chosen to it. The widget should be 'Select'. Add some allowed values.
3. Add a collapsed field_group to the content type and put the previous select field inside.
4. Go to the node/add form of the content type and select an item in the select dropdown. It works.
5. Try to add another item. You cannot.
A workaround is to set "Apply Chosen to the following elements" to "select" (without the :visible).
Comment #4
pippopeppe CreditAttribution: pippopeppe commentedexact s same issue here whene edit content with field group.
in the screenshot you can see what i see where use chosen.
i have also thi js error in console in chosen.jquery.min.js:
Comment #5
pippopeppe CreditAttribution: pippopeppe commentedComment #6
JvE CreditAttribution: JvE commentedI'm also running into this issue.
Looks like everything inside the collapsed field groups is 'invisible' so the default "select:visible" doesn't apply.
What are the disadvantages of the workaround of using "select" without ":visible" ?
Comment #7
rocket777 CreditAttribution: rocket777 commentedI am having the same issue
Does not work with field group
and disabled the admin_menu as well.
Have tried to debug this for a while now.
Comment #8
Collins405 CreditAttribution: Collins405 commentedI am having this issue still with the latest version.
I have a multiselect inside a fieldgroup fieldset, inside a field collection. If the fieldset is not collapsed on page load, it works
Comment #9
byrond CreditAttribution: byrond at Palantir.net commentedWe are seeing breaking behavior when using Chosen inside a field group tab. The width of the widget is set very narrow. This behavior is present on both Seven, as well as the Claro theme.
Comment #10
byrond CreditAttribution: byrond at Palantir.net commentedUpdating to 3.0.1 improves the widget on Claro, but not the Seven theme.
Comment #11
byrond CreditAttribution: byrond at Palantir.net commentedThis patch improved our issue:
https://www.drupal.org/project/chosen/issues/1857298#comment-14001561
We made one small change to that patch for our implementation to make all widths 100%.