Skip to content

Conversation

@Souptik2001
Copy link
Contributor

When re-attaching the multi-select component inside the DOM, the connectedCallback of the components run again and duplicate event listeners are added to the component.

To fix this add a check in the connectedCallback that - "if the component is already initialized don't add the event listeners again.

Reference issue - #35

Signed-off-by: Souptik Datta <souptikdatta2001@gmail.com>
@junaidbhura junaidbhura merged commit 61d812a into master Feb 20, 2024
@junaidbhura junaidbhura deleted the fix/35-mutli-select-duplicate-event-listeners branch February 20, 2024 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants