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

data-instant-mousedown-shortcut breaks bootstrap 3 navbar menus #86

Open
PetterS opened this issue Sep 15, 2020 · 1 comment
Open

data-instant-mousedown-shortcut breaks bootstrap 3 navbar menus #86

PetterS opened this issue Sep 15, 2020 · 1 comment

Comments

@PetterS
Copy link

PetterS commented Sep 15, 2020

If data-instant-mousedown-shortcut is added to the body, bootstrap 3 dropdown menus do not work. This is not fixed by adding data-no-instant to them.

They are a elements with href="#" class="dropdown-toggle" data-toggle="dropdown". If they are made into another element, e.g. button, things work. This is surprising, since adding data-no-instant does not work.

@PetterS
Copy link
Author

PetterS commented Sep 15, 2020

Adding this in the mousedownShortcutListener function fixes the issue:

    if (!isPreloadable(linkElement)) {
        return;
    }

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

2 participants