Entity Browsers within paragraphs don't reliably select entities

Created on 14 November 2023, about 1 year ago

Problem/Motivation

Sometimes selected Entity Browser entities don't populate after a selection is made and the dialog closes.

ME adds attaches a entity_browser.modal_selection.js file along with Entity Browser's entity_browser.modal_selection.js file to close the Mercury Dialog after selection. These scripts get inserted into the page when a selection is made within the modal. The EB version triggers the `entities-selected` event on the parent "Select Entities" button, then closes the jquery dialog modal. The ME version just closes the . In some cases, the ME script runs first which appears to prevent the EB version from properly triggering on the parent – likely due to the iframe being removed from the DOM before the event triggers.

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pixelwhip

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024