Skip to content

Fix nested elements js violation#14911

Merged
brandonkelly merged 3 commits into4.xfrom
bugfix/cms-14510-nested-elements-js-violation
May 1, 2024
Merged

Fix nested elements js violation#14911
brandonkelly merged 3 commits into4.xfrom
bugfix/cms-14510-nested-elements-js-violation

Conversation

@brianjhanson
Copy link
Copy Markdown
Contributor

Description

When a disclosure is hidden we don't need to listen for scroll or resize events to reposition the disclosure. Keeping those event listeners around seems to be causing #14510.

The warning is fairly opaque and I didn't quite track it conclusively to this, but I'm not able to replicate the issue with the event listeners removed.

Related issues

Fixes #14510

# Conflicts:
#	src/web/assets/garnish/src/DisclosureMenu.js
# Conflicts:
#	src/web/assets/garnish/dist/garnish.js
#	src/web/assets/garnish/dist/garnish.js.map
@brandonkelly brandonkelly changed the base branch from 5.x to 4.x May 1, 2024 17:15
@brandonkelly brandonkelly force-pushed the bugfix/cms-14510-nested-elements-js-violation branch from c8cd0cf to 3bd26a1 Compare May 1, 2024 17:16
@brandonkelly brandonkelly merged commit f479fc3 into 4.x May 1, 2024
@brandonkelly brandonkelly deleted the bugfix/cms-14510-nested-elements-js-violation branch May 1, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[5.0.0-beta.4]: Editing nested elements causes JS violation / Forced reflows

2 participants