I would like to be able to pass a callback function like onPositionChange?: (position: PopoverPosition) => void that gets called when the popover repositions itself (i.e. goes to the next position in the positions list).
Currently I don't think it's possible to get this information without re-implementing the default positioning logic via the contentLocation prop. If I'm wrong in this assumption please let me know 🙂
Happy to look into opening a PR for this, doubly so if you can point me to the right spot.
Hello,
I would like to be able to pass a callback function like
onPositionChange?: (position: PopoverPosition) => void
that gets called when the popover repositions itself (i.e. goes to the next position in thepositions
list).Currently I don't think it's possible to get this information without re-implementing the default positioning logic via the
contentLocation
prop. If I'm wrong in this assumption please let me know 🙂Happy to look into opening a PR for this, doubly so if you can point me to the right spot.
Many thanks!