From 5afe27d67f371783e08f8da5e5e5cc8dab4966d0 Mon Sep 17 00:00:00 2001 From: inottn Date: Sun, 4 Aug 2024 20:11:05 +0800 Subject: [PATCH] fix(SwipeCell): the click will be triggered after the touchend event on desktop (#13040) --- packages/vant/src/swipe-cell/SwipeCell.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/vant/src/swipe-cell/SwipeCell.tsx b/packages/vant/src/swipe-cell/SwipeCell.tsx index 6469466cc..c598be5cc 100644 --- a/packages/vant/src/swipe-cell/SwipeCell.tsx +++ b/packages/vant/src/swipe-cell/SwipeCell.tsx @@ -194,6 +194,11 @@ export default defineComponent({ if (stop) { event.stopPropagation(); } + + if (lockClick) { + return; + } + onClick(position, event); };