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
However, when you click on anything outside of the ReactTags component (and due to the portal, the listbox is now considered outside), the listbox is removed. This happens before your click is able to add a tag from the list of suggestions.
Because of this, I believe this is a change that has to happen within the library itself, rather than in the code where I use the library. At least, I haven't been able to find a property which would allow me to cancel the removal of the listbox myself (note: this is what I tried to do with the onFocus prop - I also tried onClick, onMouseDown, and onBlur on the main component)
The text was updated successfully, but these errors were encountered:
I'm sure the logic could be amended to take portals into account. This is not something I currently plan to look into as I don't currently have this use case but I'd welcome any contributions.
Describe the solution you'd like
I would like to use this component within a scrollable container, in a way where the popover isn't clipped by the scrollable container
Describe alternatives you've considered
I have tried to use a portal to achieve this effect.
However, when you click on anything outside of the ReactTags component (and due to the portal, the listbox is now considered outside), the listbox is removed. This happens before your click is able to add a tag from the list of suggestions.
Because of this, I believe this is a change that has to happen within the library itself, rather than in the code where I use the library. At least, I haven't been able to find a property which would allow me to cancel the removal of the listbox myself (note: this is what I tried to do with the onFocus prop - I also tried onClick, onMouseDown, and onBlur on the main component)
The text was updated successfully, but these errors were encountered: