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

ChristopheDG created an issue. See original summary.

nagy.balint’s picture

Unfortunately 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.

ChristopheDG’s picture

Thank 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).

nagy.balint’s picture

Maybe 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.

1kenthomas’s picture

Is there any reason to keep this open at this point?

nkoporec’s picture

Status: Active » Fixed

I think the issue is solved, so marking this as Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.