Skip to content

fix(components): remove reInit event listener on carousel cleanup#10969

Open
kimiaShahbaghi wants to merge 1 commit into
shadcn-ui:mainfrom
kimiaShahbaghi:fix/carousel-reinit-listener-cleanup
Open

fix(components): remove reInit event listener on carousel cleanup#10969
kimiaShahbaghi wants to merge 1 commit into
shadcn-ui:mainfrom
kimiaShahbaghi:fix/carousel-reinit-listener-cleanup

Conversation

@kimiaShahbaghi

Copy link
Copy Markdown

api.on("reInit", onSelect): was registered in the useEffect but the cleanup only called api.off("select", onSelect), leaving the reInit listener attached when the api changes or component unmounts. Fixed across all three carousel implementations (new-york-v4, bases/base, bases/radix).

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

@kimiaShahbaghi is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Can you sign the commits please? See https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant