Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backdrop): disable tap longer after backdrop close
To prevent unwanted clicks from happening, such as an input getting focus after clicking “OK” on a popup, keep the backdrop visible for a longer period of time. The simulated click is what closes the popup’s backdrop, but the native click will still happen 300ms later, which may cause another input to receive focus. Closes #1536
- Loading branch information
7faeeda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe this fix will work when the input is in a modal and the popup is right over the open modal, since the backdrop doesn't affect it. At least it didn't work for me.