Steps to reproduce:
- Install Drupal
- Enable entity_browser_example module
- navigate to /node/add/entity_browser_test
- Open first "Files" details element
- Click on "Select entities" and add few files to the field
- Open second "Files" details element
- Click on "Select entities", dialog opens, add few files
- At this point you have files in both fields
- Move back to the first "Files" details element and click "Remove" for one of the selected files
- Expected result: file is removed from the list
- Actual result: dialog opens and file stays listed
This can happen with any unrelated AJAX request. We found this issue on a form with entity browser widget and IEF: select something in EB, open IEF (AJAX fires), try to remove something from EB, unpredictable result happens.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2667448_1.patch | 1.79 KB | slashrsm |
Comments
Comment #2
slashrsm commentedThis patch fixes the problem.
Comment #3
slashrsm commentedComment #4
marcingy commentedMakes sense from a code review and comments are pretty good as too why it happens :)
Comment #5
slashrsm commentedCommitted.