From 1f31c910870f1526d27e817e9cf5a655d8331dfb Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Fri, 22 Nov 2024 09:49:43 +0100 Subject: [PATCH] Prevent redefining 'alchemy-menubar' custom element when using Turbo 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 ``` --- app/views/alchemy/_menubar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/alchemy/_menubar.html.erb b/app/views/alchemy/_menubar.html.erb index 2c525ae5d0..fb15643b0d 100644 --- a/app/views/alchemy/_menubar.html.erb +++ b/app/views/alchemy/_menubar.html.erb @@ -111,7 +111,7 @@ -