Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nested elements js violation #14911

Merged
merged 3 commits into from
May 1, 2024

Conversation

brianjhanson
Copy link
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
3 checks passed
@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