Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Documentation to include disable keyboard arrow navigation #354

Open
mikevercoelen opened this issue Mar 25, 2021 · 4 comments
Open

Comments

@mikevercoelen
Copy link

How can I disable keyboard arrow navigation?

My usecase is a multi-step form where the user can't navigate to the next slide, but I can't find a way to disable navigating with keyboard arrows

@Conor-Hinchee
Copy link
Collaborator

Hey @mikevercoelen , We have a disableKeyboard prop that is accessible from the Higher Order Component withStore or Context CarouselContext. I created an example using withStore here. Is this the functionality you were looking for ?

@mikevercoelen
Copy link
Author

I've been through the source code and it turns out I can just add disableKeyboard on the Slider component.

It's pretty bad this isn't in the docs, should be addressed.

@Conor-Hinchee
Copy link
Collaborator

I am glad you got the issue resolved. I also didn't see it in the docs, would you be willing to do a pull request updating the docs for disableKeyboard? That would be a big help.

@avanisingh0105
Copy link

Hi, @mikevercoelen I am also working on a functionality of a multi-step form with pure-react-carousel. I am using custom components (which are forms) as slides but not able to type anything in the input field, the input field is not getting focused on clicking them in any of the slides. Can you please help by telling me how were you able type in the input fields in your case?

@Conor-Hinchee Conor-Hinchee changed the title Disable keyboard arrow navigation Update Documentation to include disable keyboard arrow navigation Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants