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
Currently react-portal appends subsequent portal'ed content into the same element. This means that you can 'portal' multiple elements at once. However, occasionally you want to manage this such that only a single child is rendered at a time. and that triggering the render of a new child, closes any that may be open. My use case for this is hoverable tooltips; i find that sometimes the onMouseLeave event is not always fired if moving quickly, and allows the user to spawn many tooltips at once.
Suggested prop name would be something like closeOtherChildren or closeOthersOnOpen or orphanMode
The text was updated successfully, but these errors were encountered:
Currently react-portal appends subsequent portal'ed content into the same element. This means that you can 'portal' multiple elements at once. However, occasionally you want to manage this such that only a single child is rendered at a time. and that triggering the render of a new child, closes any that may be open. My use case for this is hoverable tooltips; i find that sometimes the
onMouseLeave
event is not always fired if moving quickly, and allows the user to spawn many tooltips at once.Suggested prop name would be something like
closeOtherChildren
orcloseOthersOnOpen
ororphanMode
The text was updated successfully, but these errors were encountered: