mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 17:00:36 +01:00
fix(Popover/Dropdown): prevent unintended closure on touchstart in mobile devices (#1609)
This commit is contained in:
@@ -154,8 +154,8 @@ export default defineComponent({
|
||||
}
|
||||
})
|
||||
|
||||
function onTouchStart () {
|
||||
if (!popoverApi.value) {
|
||||
function onTouchStart (event: TouchEvent) {
|
||||
if (!event.cancelable || !popoverApi.value) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user