Modal needs to be open twice to work

Created on 19 February 2021, almost 4 years ago
Updated 21 March 2023, over 1 year ago

Problem/Motivation

The first time you load a node form and click on a Entity Reference Tree button, its modal is open but no tree is loaded. You need to close that modal and click on the button again so the taxonomy tree is actually loaded.

Steps to reproduce

Load a node form, click on a Entity Reference Tree button. The modal that gets open doesn't load any data.

That happens randomly, more usually where Drupal JS files are served from a slow connection.

Proposed resolution

Ensure that Drupal.attachBehaviors(); is called when the modal is open.

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇪🇸Spain albertosilva Basque Country

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024