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

[7.4-stable] Prevent redefining 'alchemy-menubar' custom element when using Turbo #3167

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.4-stable:

Questions ?

Please refer to the Backport tool documentation

This commit uses `data-turbo-eval="false"` to prevent defefining
'alchemy-menubar' custom element when navigating between pages with
Turbo.
Without this, we are getting the following error after each
`Turbo.visit`:
```
Uncaught DOMException: CustomElementRegistry.define: 'alchemy-menubar' has already been defined as a custom element
```

(cherry picked from commit 1f31c91)
@tvdeyen tvdeyen enabled auto-merge January 24, 2025 19:53
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.48%. Comparing base (c73daec) to head (d06cb2a).
Report is 2 commits behind head on 7.4-stable.

Additional details and impacted files
@@             Coverage Diff             @@
##           7.4-stable    #3167   +/-   ##
===========================================
  Coverage       96.48%   96.48%           
===========================================
  Files             237      237           
  Lines            6421     6421           
===========================================
  Hits             6195     6195           
  Misses            226      226           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit eaa8da1 into 7.4-stable Jan 24, 2025
47 checks passed
@tvdeyen tvdeyen deleted the backport/7.4-stable/pr-3095 branch January 24, 2025 20:08
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.

3 participants