Replies: 1 comment
-
proposed solution: #3479 |
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
-
See a more concrete example here: #3277 (comment)
Basically, if you use modifiers like so:
dragover.stop.prevent.throttle
, the throttling mechanism is such that for the throttled calls, the event will propagate (and not prevent default).The problematic logic is the combination of the
on()
function andthrottle()
function.on() does this to wrap the handler with a handler that tries to stop/prevent:
And then throttle does this:
So when the call is throttled (ie.
inThrottle
is true), stopPropagation is not called, and the event bubbles. Furthermore,preventDefault
is not called, so the default is not prevent.somewhat related discussions:
Beta Was this translation helpful? Give feedback.
All reactions