Skip to content

Commit 82fc6a4

Browse files
authored
Fix iOS touch issue on v-close-popper
caused by touchstart passive option
1 parent 1985776 commit 82fc6a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/floating-vue/src/directives/v-close-popper.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { supportsPassive } from '../util/env'
1+
import { supportsPassive, isIOS } from '../util/env'
22

33
function addListeners (el) {
44
el.addEventListener('mousedown', addEventProps)
55
el.addEventListener('click', addEventProps)
6-
el.addEventListener('touchstart', onTouchStart, supportsPassive
6+
el.addEventListener('touchstart', onTouchStart, supportsPassive && !isIOS
77
? {
88
passive: true,
99
}

0 commit comments

Comments
 (0)