FormidableLabs / nuka-carousel

Small, fast, and accessibility-first React carousel library with an easily customizable UI and behavior to fit your brand and site.
https://commerce.nearform.com/open-source/nuka-carousel
Other
3.06k stars 593 forks source link

fix: input typing in slides #878

Closed ValGeorgiev closed 2 years ago

ValGeorgiev commented 2 years ago

Description

Currently is not possible to type in inputs inside the slides, because we are preventing the default behaviour when user click on slide. This was done with the idea to improve the dragging and prevent the dragging of "ghost" image when user try to drag. The preventDefault is removed now and we are setting dragging="false" to all images in the carousel.

Fixes #694

Tested on Chrome and Safari on desktop and mobile

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nuka-carousel/nuka-carousel/9tyivWPg92Uvbpv7QoJrHa7h4N3j
✅ Preview: https://nuka-carousel-git-fix-input-typing-nuka-carousel.vercel.app