Open dfernandez-asapp opened 4 years ago
About my comment on the possible cause. That's not the issue, there is another effect a few lines up that does a setOptions
. I checked with the debugger and the options are updated, but for some reason the positioning is wrong after an strategy update.
Reproduction demo
https://codesandbox.io/s/condescending-mendel-bo6hp?file=/src/App.tsx
Steps to reproduce the problem
strategy
value tousePopper
that depends on a property or statestrategy
value from 'fixed' to 'absolute' and viceversaWhat is the expected behavior?
Changes in strategy should keep the popper visually positioned in the same place.
What went wrong?
The changes in strategy are not correctly reflected.
Any other comments?
I think that a possible cause of this bug may be here: https://github.com/popperjs/react-popper/blob/master/src/usePopper.js#L117
Because
popperOptions
is not one of the effect dependencies.Packages versions