Problem/Motivation
Non-unique $wrapper_id is generated in src/Plugin/Field/FieldWidget/AutocompleteViewsWidget.php::formElement()
Steps to reproduce
- paragraph_type:my_node with a single value entity_reference field (field_my_node)
- Add two instances of paragraph:my_node
- When you modify the referenced entity in the second paragraph
- the AJAX action replaces the HTML fragment in first paragraph.
I think it will fail in other scenarios as well.
For example one paragraph instance with a multi-value entity_reference field.
Proposed resolution
Fully unique ID.
This one is not enough: "evf-field_my_node-ajax-target".
Comments