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

Unable to select multiple items using shift-key in Firefox #431

Closed
ddundua opened this issue Nov 19, 2014 · 2 comments
Closed

Unable to select multiple items using shift-key in Firefox #431

ddundua opened this issue Nov 19, 2014 · 2 comments
Labels

Comments

@ddundua
Copy link

ddundua commented Nov 19, 2014

I am using FF 33.1.1 and bootstrap-multiselect 0.9.10. When I select an item in the list, and then hold shift to select the following few items FF pops up a blank page. I can reproduce this on an of the mutliselect examples. However, this functions fine in Chrome.

@Tyf0x
Copy link
Contributor

Tyf0x commented Nov 25, 2014

The cause seems to be a Firefox "bug".

I quoted the term bug since this is not really one. It is to be expected that shift-clicking a link opens it's href in a new tab. Chrome and Firefox are just behaving differently. From my understanding, there is no specifications formally written for this specific case.

I'll submit a pull request with a workaround soon.

Tyf0x added a commit to Tyf0x/bootstrap-multiselect that referenced this issue Nov 25, 2014
-> See https://bugzilla.mozilla.org/show_bug.cgi?id=559506
-> Removed the javascript:void(0) href for anchor elements in the multiselect dropdown
-> Added a tabindex = 0 to keep the anchors focus-able
-> Added code to remove any text selection when using shift+click
-> Handles the checkbox selection manually when done using shift+click on its label
@davidstutz
Copy link
Owner

Will check this, thanks @Tyf0x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants