react-popper icon indicating copy to clipboard operation
react-popper copied to clipboard

fix: Returns correct state when referenceElement becomes null

Open lmk123 opened this issue 5 years ago • 0 comments

When I change referenceElement or popperElement to null, usePopper returns old state to me.

Steps To Reproduce

  1. open the reproduce link: https://codepen.io/lmk123/pen/zYrRzMM
  2. click the 'Set referenceElement to null' button

Expected behavior: state.placement becomes null Current behavior: state.placement is still bottom

lmk123 avatar Jul 06 '20 08:07 lmk123