Skip to content

Commit 06b410d

Browse files
authored
Merge pull request JayeshLab#13 from jsancho-gpl/master
Fix Vue warning with .native modifier for v-on
2 parents 5d7a184 + d8b07bf commit 06b410d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vue-numeric-input.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
v-if="controls"
2525
class="btn btn-decrement"
2626
@mousedown="start(decrement)"
27-
@touchstart.native.prevent="start(decrement)"
28-
@touchend.native.prevent="stop"
27+
@touchstart="$event.preventDefault(); start(decrement)"
28+
@touchend="$event.preventDefault(); stop($event)"
2929
:disabled="disabled || numericValue <= min"
3030
>
3131
<i class="btn-icon"></i>
@@ -35,8 +35,8 @@
3535
v-if="controls"
3636
class="btn btn-increment"
3737
@mousedown="start(increment)"
38-
@touchstart.native.prevent="start(increment)"
39-
@touchend.native.prevent="stop"
38+
@touchstart="$event.preventDefault(); start(increment)"
39+
@touchend="$event.preventDefault(); stop($event)"
4040
:disabled="disabled || numericValue >= max"
4141
>
4242
<i class="btn-icon"></i>

0 commit comments

Comments
 (0)