There is some weird behavior if you edit a referenced entity in Entity Browser modal.
It's happening in the following situation:
Now if you edit the referenced entity via the Entity Browser Modal and try to add a paragraph to the referenced entity, this will not happen in the modal but outside in entity that is referencing.
This happens because the ajax wrapper id is not distinct in this case. The same id is there in the outer (normal entity) form and the inner (modal entity) form.
Using a node entity (would be the same for other entities too)
Try to have a unique ajax wrapper id for this case too.
The "entity_reference_paragraphs" (aka Classic) widget does not have this problem. This is because it uses getUniqueId() to create the wrapper id.
The "paragraphs" (aka Experimental) widget does instead use getId() here and it seems for good reason → .
So it seems the solution cannot just be to change back to getUniqueId().
Maybe one could add information about the entity the paragraph field is in to the ajax wrapper id, for example add bundle and entity id to the ajax wrapper id.
create a patch
none
none
none
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.