From cea19ac161d48f02ce5896127efa432fce7f4d2f Mon Sep 17 00:00:00 2001 From: cuongle-hdwebsoft <102006695+cuongle-hdwebsoft@users.noreply.github.com> Date: Sun, 15 Oct 2023 18:38:17 +0700 Subject: [PATCH] fix(components): prevent carousel from auto playing (#14553) prevent carousel from auto playing closed #14524 --- packages/components/carousel/src/use-carousel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/carousel/src/use-carousel.ts b/packages/components/carousel/src/use-carousel.ts index 9588b44eb1..93b76a186d 100644 --- a/packages/components/carousel/src/use-carousel.ts +++ b/packages/components/carousel/src/use-carousel.ts @@ -212,7 +212,7 @@ export const useCarousel = ( function resetTimer() { pauseTimer() - startTimer() + if (!props.pauseOnHover) startTimer() } function setContainerHeight(height: number) {