Replies: 2 comments 1 reply
-
|
Good catch! This is actually fixable, corvu can check if the target element is a |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
A fix is released as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
<Drawer>component uses theonPointerDownevent to handle dragging.I found an edge case (symptom is the same as the one describe in this issue) where clicking
<select>inside a Drawer and then clicking outside keeps the dragging state true. It happens only in Safari as far as I tested, and presumably improperly fires theonPointerDownevent in<Drawer>.It can be avoided by doing
<select onPointerDown={(ev) => ev.stopPropagation}>, so it's not a big problem.I have a feeling this is not a corvu bug; instead, something that should be dealt with granularly by the user.
So I'm opening this discussion to suggest that the docs mentions that edge cases similar to this one can be easily avoided by adding
ev.stopPropagation()to the target'sonPointerDownevent.Beta Was this translation helpful? Give feedback.
All reactions