You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a custom ItemRenderer, double selecting a single item will remove the capability to close the dropdown when clicking outside.
Desktop (please complete the following information):
OS: Win 11
Chrome
Latest
Additional context
Maybe I use the Default Item renderer wrong, but there is no working example in the docs and this was the only thing I found in the soruce code.
The text was updated successfully, but these errors were encountered:
I work around this by using the useClickAway hook in @uidotdev/usehooks
Put the MultiSelect component in div with ref from useClickAway
When clicked outside, trigger function to find to class .dropdown-heading, then trigger click event.
Worked!
@Uni2K Please check the focus of the dropdown. When you use a ItemRender after first click, the Dropdown loses focus and cannot be closed clicking outside.
Describe the bug
When using a custom ItemRenderer, double selecting a single item will remove the capability to close the dropdown when clicking outside.
Sandbox / Git Repo
https://codesandbox.io/s/naughty-dewdney-wn7v74?file=/src/App.js
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It closes when clicked outside
Screenshots
Desktop (please complete the following information):
Additional context
Maybe I use the Default Item renderer wrong, but there is no working example in the docs and this was the only thing I found in the soruce code.
The text was updated successfully, but these errors were encountered: