Closed deevus closed 5 years ago
If you thrash the state of the floater in controlled mode, it sometimes does not go away even though open={false}
open={false}
Quickly move your mouse over the "Hover Me" button. You should eventually get a floater with the text "I should not be open"
The floater should disappear when open={false} in controlled mode
https://codesandbox.io/s/pwwppv1060?fontsize=14
npx envinfo --system --binaries --npmPackages react-floater
Paste the results here:
npx: installed 1 in 1.991s System: OS: Linux 5.0 Fedora 29 (Workstation Edition) 29 (Workstation Edition) CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz Memory: 4.92 GB / 31.15 GB Container: Yes Shell: 4.4.23 - /bin/bash Binaries: Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node Yarn: 1.13.0 - /home/linuxbrew/.linuxbrew/bin/yarn npm: 6.8.0 - ~/Projects/vimily/bonjoro/node_modules/.bin/npm npmPackages: react-floater: ^0.6.4 => 0.6.4
🐛 Bug Report
If you thrash the state of the floater in controlled mode, it sometimes does not go away even though
open={false}
To Reproduce
Quickly move your mouse over the "Hover Me" button. You should eventually get a floater with the text "I should not be open"
Expected behavior
The floater should disappear when
open={false}
in controlled modeLink to repl or repo (highly encouraged)
https://codesandbox.io/s/pwwppv1060?fontsize=14
Run
npx envinfo --system --binaries --npmPackages react-floater
Paste the results here: