From 7999cdecbfc43dc26235ed5841bf2a34b513deeb Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 4 Mar 2022 11:31:22 +0800 Subject: [PATCH] fix: carousel click error, close #5299 --- components/vc-slick/utils/innerSliderUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-slick/utils/innerSliderUtils.js b/components/vc-slick/utils/innerSliderUtils.js index ec3658bf00..0d834a71ea 100644 --- a/components/vc-slick/utils/innerSliderUtils.js +++ b/components/vc-slick/utils/innerSliderUtils.js @@ -309,7 +309,7 @@ export const keyHandler = (e, accessibility, rtl) => { }; export const swipeStart = (e, swipe, draggable) => { - e.target.tagName === 'IMG' && safePreventDefault.preventDefault(); + e.target.tagName === 'IMG' && safePreventDefault(e); if (!swipe || (!draggable && e.type.indexOf('mouse') !== -1)) return ''; return { dragging: true,