Skip to content

Commit

Permalink
fix(Popover/Dropdown): use @touchstart.passive instead of `@touchst…
Browse files Browse the repository at this point in the history
…art.prevent` (#1520)
  • Loading branch information
danielohling committed Mar 17, 2024
1 parent 7658211 commit a563d8f
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 @@ -8,7 +8,7 @@
:class="ui.trigger"
role="button"
@mouseenter="onMouseEnter"
@touchstart.prevent="onTouchStart"
@touchstart.passive="onTouchStart"
>
<slot :open="open" :disabled="disabled">
<button :disabled="disabled">
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 @@ -8,7 +8,7 @@
:class="ui.trigger"
role="button"
@mouseenter="onMouseEnter"
@touchstart.prevent="onTouchStart"
@touchstart.passive="onTouchStart"
>
<slot :open="open" :close="close">
<button :disabled="disabled">
Expand Down

0 comments on commit a563d8f

Please sign in to comment.