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
Is your feature request related to a problem? Please describe.
Some of my Modalize children have display logic that depends on the modal's position. In typical react fashion, I manage the position state at the parent level - however, this leaves me imperatively updating it onPositionChange and onClosed. I image this is not a terribly uncommon desire, and some may even wish to access the position from outside the modal as well as in it's children.
Describe the solution you'd like
The ideal solution would be, as the title suggests, to expose position from the useModalize hook, allowing me to drop my imperative state management:
Is your feature request related to a problem? Please describe.
Some of my Modalize children have display logic that depends on the modal's position. In typical react fashion, I manage the position state at the parent level - however, this leaves me imperatively updating it
onPositionChange
andonClosed
. I image this is not a terribly uncommon desire, and some may even wish to access the position from outside the modal as well as in it's children.Describe the solution you'd like
The ideal solution would be, as the title suggests, to expose
position
from theuseModalize
hook, allowing me to drop my imperative state management:Describe alternatives you've considered
The alternative is to continue using my custom state management of the modal position
The text was updated successfully, but these errors were encountered: