Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2020-09-17 14:20:23 +08:00
9 changed files with 92 additions and 14 deletions
+4 -1
View File
@@ -38,7 +38,10 @@ export default createComponent({
const onTouchEnd = (event) => {
if (active.value) {
// eliminate tap delay on safari
event.preventDefault();
// see: https://github.com/youzan/vant/issues/6836
if (!slots.default) {
event.preventDefault();
}
active.value = false;
emit('press', props.text, props.type);
}