Skip to content

Bug: tp-multi-select.search #46

@Souptik2001

Description

@Souptik2001

Problem:

Suppose you have two multi-select input fields, both with search input fields.
Now you click on one of them and its dropdown opens. Now suppose you click on another one's search, then its dropdown opens, but the previous ones dropdown doesn't close.

https://prnt.sc/iQUv9gVkzjNq

Reason:

That's because we have an event listener attached to the search sub-component, which stops the event propagation.
But for closing any dropdown, we have event listeners attached to the document.
So, if we click on the search sub-component, the event doesn't reaches to the document and thus the dropdown doesn't close.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions