Skip to content

Commit 7999cde

Browse files
committed
fix: carousel click error, close #5299
1 parent 639a685 commit 7999cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-slick/utils/innerSliderUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export const keyHandler = (e, accessibility, rtl) => {
309309
};
310310

311311
export const swipeStart = (e, swipe, draggable) => {
312-
e.target.tagName === 'IMG' && safePreventDefault.preventDefault();
312+
e.target.tagName === 'IMG' && safePreventDefault(e);
313313
if (!swipe || (!draggable && e.type.indexOf('mouse') !== -1)) return '';
314314
return {
315315
dragging: true,

0 commit comments

Comments
 (0)