mirror of
https://github.com/youzan/vant.git
synced 2026-05-17 01:00:36 +08:00
fix(NumberKeyboard): slot content click event not work (#7193)
This commit is contained in:
@@ -48,7 +48,10 @@ export default createComponent({
|
||||
onTouchEnd(event) {
|
||||
if (this.active) {
|
||||
// eliminate tap delay on safari
|
||||
event.preventDefault();
|
||||
// see: https://github.com/youzan/vant/issues/6836
|
||||
if (!this.slots('default')) {
|
||||
event.preventDefault();
|
||||
}
|
||||
this.active = false;
|
||||
this.$emit('press', this.text, this.type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user