Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant