From 44b4d3581439fa2a1cc60eeb4631388da2662c1d Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:02:28 -0300 Subject: [PATCH] fix: prevent duplicate initialization of connector --- .../resources/META-INF/frontend/fcEnhancedTabs/connector.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/resources/META-INF/frontend/fcEnhancedTabs/connector.js b/src/main/resources/META-INF/frontend/fcEnhancedTabs/connector.js index 465d1de..34b3aca 100644 --- a/src/main/resources/META-INF/frontend/fcEnhancedTabs/connector.js +++ b/src/main/resources/META-INF/frontend/fcEnhancedTabs/connector.js @@ -2,7 +2,7 @@ * #%L * Enhanced Tabs Add-on * %% - * Copyright (C) 2023 Flowing Code + * Copyright (C) 2023-2024 Flowing Code * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,9 @@ (function () { window.Vaadin.Flow.fcEnhancedTabsConnector = { initLazy: tabs => { + + if (tabs.fcEnhancedTabsConnector) return; + tabs.fcEnhancedTabsConnector = true; let close = tabs._close;