focus-trap
focus-trap copied to clipboard
fix: prevent multiple registers in customElement registry
If the lib is included multiple times - e.g in a micro-frontend architecture, trying to register the same component in the custom element registry results in a runtime error
this PR adds a check if the component is already registered to prevent the multiple register error