You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modal closes when click ends outside of modal, even if input is focused.
This is a bug in the sense that it is disruptive to the user. It's not an edge case that we anticipated, but that doesn't make it not a bug. That being said, it may be tricky to fix and is not super high priority, so we don't have to fix it now.
Add a state variable to keep track of whether the input is focused. This should capture when someone is typing in the input as well as when they are highlighting content in the input. If the input is focused, do not close the modal.
The text was updated successfully, but these errors were encountered:
Description
Modal closes when click ends outside of modal, even if input is focused.
This is a bug in the sense that it is disruptive to the user. It's not an edge case that we anticipated, but that doesn't make it not a bug. That being said, it may be tricky to fix and is not super high priority, so we don't have to fix it now.
To Reproduce
Recording showing example:
https://www.loom.com/share/8afac30dc06f41abbaba11ae064924f5
Expected Behavior
Modal should not close while input is focused.
Suggested Solution
Add a state variable to keep track of whether the input is focused. This should capture when someone is typing in the input as well as when they are highlighting content in the input. If the input is focused, do not close the modal.
The text was updated successfully, but these errors were encountered: