diff --git a/src/lib/focus-trap.ts b/src/lib/focus-trap.ts index 85d6477..1aa8979 100644 --- a/src/lib/focus-trap.ts +++ b/src/lib/focus-trap.ts @@ -205,4 +205,4 @@ export class FocusTrap extends HTMLElement implements IFocusTrap { } } -window.customElements.define("focus-trap", FocusTrap); \ No newline at end of file +if (!window.customElements.get('focus-trap')) customElements.define('focus-trap', FocusTrap);