-
Notifications
You must be signed in to change notification settings - Fork 329
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
Elements behind detached overlay cancel button get clicked as well #853
Comments
Some interesting finds:
|
I'm reproducing the issue on Firefox with touch gestures enabled (event occurs with a slight delay). The behavior not happening on debug mode is likely caused by the I will investigate. |
That's indeed because the input loses focus. We could either prevent touch events on the panel elements, or not attach this blur logic on the input in Detached mode. |
Does anyone have a solution for this bug? |
Another thing to try is to autocomplete/packages/autocomplete-js/src/createAutocompleteDom.ts Lines 171 to 174 in 83b5a31
Would you like to PR @prestarocket? |
Description
I'm noticing that when the cancel button of detached overlay is clicked, that elements behind the overlay are also being clicked.
Reproduction
Here is a sandbox showing the problem: https://eqkl7.csb.app/
Steps
Expected behavior
I expect the detached overlay to close when clicking 'cancel' but not to be any other element behind it being clicked.
Environment
The text was updated successfully, but these errors were encountered: