Replies: 3 comments 5 replies
-
Hi @gnllucena, This feature isn’t available yet but will be in a future release. Best, |
Beta Was this translation helpful? Give feedback.
-
While the feature is not implemented yet, that's how I'm hacking the feature into the current version: (I really don't recommend this solution, it makes the usability really terrible, but in my case, I must not let the user navigate to the next slides, unless they complete the current step) const handleKeyDown = React.useCallback(
(event: React.KeyboardEvent<HTMLDivElement>) => {
if (event.key === "Tab" && enableTabNavigation === false) {
event.preventDefault()
}
},
[enableTabNavigation, scrollPrev, scrollNext]
) <CarouselContext.Provider>
<div
onKeyDownCapture={handleKeyDown}
{...props}
>
{children}
</div>
</CarouselContext.Provider> The lib is amazing, I'm really waiting for this feature to be build into it. Thanks for the amazing work, @davidjerleke |
Beta Was this translation helpful? Give feedback.
-
Hi @gnllucena, were you able to navigate inside of an input with left and right arrow keys? Any way to hack that? |
Beta Was this translation helpful? Give feedback.
-
Summary
I understand navigation between the slides is accessibility feature, but in my case, I'm using embla for my creating account flow, each step is a slide.
I need to prevent the slide change when the user hits tab on the flow inputs.
How can I achieve that?
If applicable, which variants of Embla Carousel are relevant to this question?
Additional information
No response
CodeSandbox example
No response
Beta Was this translation helpful? Give feedback.
All reactions