focus-trap icon indicating copy to clipboard operation
focus-trap copied to clipboard

fix: prevent multiple registers in customElement registry

Open loberbichler opened this issue 1 year ago • 0 comments

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

loberbichler avatar Sep 30 '22 14:09 loberbichler