File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export default {
7676
7777 if ( handlers . click . length === 0 ) {
7878 // use click to be able to prevent click in handler
79- document . addEventListener ( 'click ' , globalHandler , notPassiveCapture )
79+ document . addEventListener ( 'mousedown ' , globalHandler , notPassiveCapture )
8080 document . addEventListener ( 'touchstart' , globalHandler , notPassiveCapture )
8181 document . addEventListener ( 'focusin' , globalHandler , passiveCapture )
8282 }
@@ -113,7 +113,7 @@ export default {
113113
114114 if ( handlers . click . length === 0 ) {
115115 clearTimeout ( timer )
116- document . removeEventListener ( 'click ' , globalHandler , notPassiveCapture )
116+ document . removeEventListener ( 'mousedown ' , globalHandler , notPassiveCapture )
117117 document . removeEventListener ( 'touchstart' , globalHandler , notPassiveCapture )
118118 document . removeEventListener ( 'focusin' , globalHandler , passiveCapture )
119119 }
You can’t perform that action at this time.
0 commit comments