Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Returns correct state when referenceElement becomes null #374

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

lmk123
Copy link

@lmk123 lmk123 commented Jul 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant