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

keyboardNavigation: true is breaking tabbing of global navigation if more than one level deep in Dropdown Menu #179

Open
glennpowell2 opened this issue Jun 29, 2022 · 1 comment

Comments

@glennpowell2
Copy link

Currently on a legacy system, it uses Bootstrap 3. Can't speak for later versions of Bootstrap. While bootstrap doesn't allow for multilevel global navigation out of the box, we use a modified version that does allow for it.

Global Navigation = Navigation Dropdown at the top of the website.

We use Liquid Slider for Announcements.

If I have keyboardNavigation set to the value of true while using Liquid Slider, when you tab through our Global Navigation (multilevel dropdown) it auto closes the dropdown once you attempt to tab into the lower ul li past the first level. If I set it the value to false, the global navigation tabs as expected. But setting it to true is the only way to allow the arrow keys to navigate through the Liquid Slider tabs.

Any advice on how to solve this issue?

@KevinBatdorf
Copy link
Owner

It's been so long since I've worked on this I barely remember the api.

Looking at the code examples, maybe you could disable/enable the keyboard navigation dynamically?

const api = $.data( $('#my-slider')[0], 'liquidSlider');
api.options.keyboardNavigation = false;
// do something
api.options.keyboardNavigation = true;

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

No branches or pull requests

2 participants