Skip to content

Commit

Permalink
feat(components): [time-picker] @touchstart add passive (#16665)
Browse files Browse the repository at this point in the history
feat(components): [time-picker] touchstart add passive
  • Loading branch information
warmthsea committed Apr 30, 2024
1 parent 38359ed commit 5cc5673
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/components/time-picker/src/common/picker.vue
Expand Up @@ -54,15 +54,15 @@
@mousedown="onMouseDownInput"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
@touchstart="onTouchStartInput"
@touchstart.passive="onTouchStartInput"
@click.stop
>
<template #prefix>
<el-icon
v-if="triggerIcon"
:class="nsInput.e('icon')"
@mousedown.prevent="onMouseDownInput"
@touchstart="onTouchStartInput"
@touchstart.passive="onTouchStartInput"
>
<component :is="triggerIcon" />
</el-icon>
Expand All @@ -85,14 +85,14 @@
@click="handleFocusInput"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
@touchstart="onTouchStartInput"
@touchstart.passive="onTouchStartInput"
@keydown="handleKeydownInput"
>
<el-icon
v-if="triggerIcon"
:class="[nsInput.e('icon'), nsRange.e('icon')]"
@mousedown.prevent="onMouseDownInput"
@touchstart="onTouchStartInput"
@touchstart.passive="onTouchStartInput"
>
<component :is="triggerIcon" />
</el-icon>
Expand Down

0 comments on commit 5cc5673

Please sign in to comment.