Skip to content

Commit

Permalink
fix: prevent duplicate initialization of connector
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy authored and paodb committed Jul 2, 2024
1 parent dee7593 commit 44b4d35
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -21,6 +21,9 @@
(function () {
window.Vaadin.Flow.fcEnhancedTabsConnector = {
initLazy: tabs => {

if (tabs.fcEnhancedTabsConnector) return;
tabs.fcEnhancedTabsConnector = true;

let close = tabs._close;

Expand Down

0 comments on commit 44b4d35

Please sign in to comment.