I have observed a rather strange behaviour when using a multi value field with option for recurring items and clicking "add another item". This leads to broken Drupal States behaviour in showing the option fields for "n times" and "end date" although "Never" is selected in the "Ends" part.
I digged into code a little and seems to me that is something about how Drupal is building the field items after "add another item" is clicked. Drupal is replacing the whole field items and not only adding a the new item. And this is all happening via Ajax, so there seems to be a break somewhere.
I think this is not a big issue, rather a small incovenience, but just wanted to share this observation.
This is a screenshot how the widget looks after adding another item and then changing the Repeats from None to Daily or something else:

| Comment | File | Size | Author |
|---|---|---|---|
| #5 | multivalue_field_with_recur_option_add_another_item_ajax_states_broken-3150860-5.patch | 1.39 KB | stefan.korn |
| screenshot_ajax.png | 19.14 KB | stefan.korn |
Comments
Comment #2
stefan.kornComment #3
stefan.kornComment #4
stefan.kornIt seems that changing from using "invisble" to "visible" in the states does maybe solve this problem.
Kindly have a look on this patch.
Comment #5
stefan.kornsorry, there was an issue with patch from #4, revised one here
Comment #7
mandclu commentedThanks for identifying this, and for providing a patch! I was able to reproduce the issue and verify that the patch resolved it. Merged in.