Closed pdambrauskas closed 1 year ago
I've noticed, that when I use contentLocation for custom popover positioning, it keeps re-rendering.
contentLocation
It was caused by onPositionPopover, which was overriding align to undefined. This condition was always true: https://github.com/alexkatz/react-tiny-popover/blob/v7.1.0/src/Popover.tsx#L111
onPositionPopover
align
@alexkatz
Fix pushed to master along with some others, thank you for pointing this out!
I've noticed, that when I use
contentLocation
for custom popover positioning, it keeps re-rendering.It was caused by
onPositionPopover
, which was overridingalign
to undefined. This condition was always true: https://github.com/alexkatz/react-tiny-popover/blob/v7.1.0/src/Popover.tsx#L111@alexkatz