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.
My dependee is a select element. Based on the chosen value, other dependent fields become (in)visible. If one of those fields is a select element that uses Chosen, then the select element is not shown correctly (tiny empty square).
Comments
Comment #2
nagy.balint CreditAttribution: nagy.balint commentedUnfortunately I cant reproduce the issue.
I have 200px set up at "Minimum width of widget"
also i set the "Apply Chosen to the following elements" to "select" so it applies to all select even if its invisible.
Also i used the latest dev of the conditional fields module.
I set up a list (text) to make another list (text) visible when a certain value is selected. And for me the other select appeared correctly with chosen applied.
Comment #3
ChristopheDG CreditAttribution: ChristopheDG commentedThank you!
I had the same settings you mentioned, except for setting 200px as the minimum width. And that did the trick!
This was never necessary for normal fields (not part of a condition).
Comment #4
nagy.balint CreditAttribution: nagy.balint commentedMaybe the real issue is that we have a mechanism to set the width automatically. But that mechanism does not work when the field is hidden when the page is loaded.
So setting a min width solves it, but there might be some applications where we would like the automatic mechanism but now it does not work.
So I guess we can create a more generic issue and leave it open, or we can leave this task open. For now I leave this one open.
Comment #5
1kenthomas CreditAttribution: 1kenthomas as a volunteer and commentedIs there any reason to keep this open at this point?
Comment #6
nkoporecI think the issue is solved, so marking this as Fixed.