Problem/Motivation

Non-unique $wrapper_id is generated in src/Plugin/Field/FieldWidget/AutocompleteViewsWidget.php::formElement()

Steps to reproduce

  1. paragraph_type:my_node with a single value entity_reference field (field_my_node)
  2. Add two instances of paragraph:my_node
  3. When you modify the referenced entity in the second paragraph
  4. 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

sweetchuck created an issue.