Skip to content

Commit

Permalink
fix(Dropdown): Prevent immediate dropdown closure on touch start in m…
Browse files Browse the repository at this point in the history
…obile devices
  • Loading branch information
vahid-bagheri committed Apr 3, 2024
1 parent 5b9d06d commit 45c7109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/elements/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ export default defineComponent({
}
})
function onTouchStart () {
if (!menuApi.value) {
function onTouchStart (event: TouchEvent) {
if (!event.cancelable || !menuApi.value) {
return
}
Expand Down

0 comments on commit 45c7109

Please sign in to comment.