Skip to content

Commit

Permalink
fix(Dropdown/Popover): conflict in toggle for touch devices (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielQolami authored Oct 1, 2024
1 parent 847ee45 commit 4ae9654
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default defineComponent({
})
function onTouchStart (event: TouchEvent) {
if (!event.cancelable || !menuApi.value) {
if (!event.cancelable || !menuApi.value || props.mode === 'click') {
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/overlays/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default defineComponent({
})
function onTouchStart (event: TouchEvent) {
if (!event.cancelable || !popoverApi.value) {
if (!event.cancelable || !popoverApi.value || props.mode === 'click') {
return
}
Expand Down

0 comments on commit 4ae9654

Please sign in to comment.