mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-23 18:00:27 +08:00
fix(NumberKeyboard): compatible with Vue 2.6 event bubble bug (#4632)
This commit is contained in:
parent
1c5463150c
commit
9d7fed4834
@ -40,6 +40,9 @@ export default createComponent({
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onTouchStart(event) {
|
onTouchStart(event) {
|
||||||
|
// compatible with Vue 2.6 event bubble bug
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
this.touchStart(event);
|
this.touchStart(event);
|
||||||
this.active = true;
|
this.active = true;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user