Describe the bug
If you spam click a button (or any anchor, we had it happen with divs too) with an EuiPopover attached to it, it will sometimes get stuck open. Outside clicks do not close the popover anymore, the only way to close it is by clicking the button again.
I replicated this on multiple of the popovers on the "popover" page of the documentation
Impact and severity
Very Low
Environment and versions
EUI version 106.0.0, but seen on 55.x
Browsers: Firefox, Edge
Minimum reproducible sandbox
Any popover button on this page (as of v106.0.0) https://eui.elastic.co/docs/components/containers/popover/
To Reproduce
Go to the "How it works" button on the popover documentation page, spam click it. Ensure that when you are done spam-clicking, the popover is not closed. Now, click outside of the popover. The popover will not close. Now, click the "How it works" button one more time. The popover closes.
Note that I can only get it with about 75% success rate.
Expected behavior
The popover always closes on outside clicks if configured to do so.
Describe the bug
If you spam click a button (or any anchor, we had it happen with divs too) with an EuiPopover attached to it, it will sometimes get stuck open. Outside clicks do not close the popover anymore, the only way to close it is by clicking the button again.
I replicated this on multiple of the popovers on the "popover" page of the documentation
Impact and severity
Very Low
Environment and versions
EUI version 106.0.0, but seen on 55.x
Browsers: Firefox, Edge
Minimum reproducible sandbox
Any popover button on this page (as of v106.0.0) https://eui.elastic.co/docs/components/containers/popover/
To Reproduce
Go to the "How it works" button on the popover documentation page, spam click it. Ensure that when you are done spam-clicking, the popover is not closed. Now, click outside of the popover. The popover will not close. Now, click the "How it works" button one more time. The popover closes.
Note that I can only get it with about 75% success rate.
Expected behavior
The popover always closes on outside clicks if configured to do so.