I have a content type with a field collection on it. The field collection has multiple chosen selects and has a cardinality "unlimited".
When I try to add a node of that content type, chosen gets applied to all selects and works as expected. When I click "Add another" on the other hand, a new field collection gets added and non of the chosen select fields within the field collections are applied... They are all default HTML selects.

After some digging in the code (chosen.js) I found that
$(selector, context)
was causing this. After changing this line to
$(selector)
everything worked as expected, but I have a feeling this isn't a good solution, any ideas?

Comments

robin.ingelbrecht created an issue. See original summary.

quiron’s picture

Hi,

can you tell the value of the context variable? maybe the problem is of the fieldcollection ajax setup wich is using a wrong context.

andyg5000’s picture