-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Dropdowns update - keyboard, touch and submenus #5067
Conversation
This should close #5054 |
should squash commits |
@thezoggy Just squashed all the commits. Should be a little easier to read now |
What's the opinion on trigger click events from a touchstart within the dropdown. I find it extremely ugly on iOS devices when I click a link in the dropdowns and 300ms later the click appears. Just seems sort of dysfunctional. |
I am finding that I need a call to preventDefault() to get this working on Android and iOS.
|
The dropdown inside tabs still doesn't respond to touch events: if you click on the dropdown in above example on ipad, there is no event when you select @fat or @mdo |
@abhisec Thanks for the report. I will fix that up later today or tomorrow for you. Shouldn't be too much of a change. |
Hey @blakeembrey, Thanks for opening this pull-request! Unfortunately, it looks like it fails to pass the criteria neccessary for submitting to bootstrap. The following things are currently failing:
For a full list of issue filing guidelines, please refer to the bootstrap issue filing guidelines. thanks! |
thanks for this @blakeembrey 👍 I've been pulling my hair out for a few hours with this.... |
@abhisec Are you still having an issue with the tabs against my PR? I just tested it and it appears to be working. |
@blakeembrey thanks will try now. is this going to be merged if all looks rosy? |
@thezoggy @abhisec @GeoffTidey @zawaideh If you guys have time and are looking into fixes for touch and keyboard navigation still, could you please try my latest updates? Should contain a few fixes for touch navigation and plenty for keyboard. |
Is there a way to disable the keyboard navigation? |
Should be able to just use |
So it works half now, and I don't want to spend "extra" time to find out how to fix this extra functionality. |
@verschoof No problem. Thanks for your comments - I don't suppose you have example of the markup, etc. you are using? If you do, I can check it out (in case there is something I missed). |
…into account .pull-left, .dropup, .dropdown modifier classes). Takes into account whether we entered the menu using up or down. Behaves much like a standard dropdown menu on Mac, minus the submenu showing on focus. As a result of this - .pull-left will cause navigation to the submenu to be the left arrow v right normally. Use opposite direction to go up a level. Use [esc] will bring you back to the initial button focused. Reenables and adds touch support to menus and submenu items. Conflicts: js/bootstrap-dropdown.js
@markdotto Could I find out why the pull request wasn't accepted? |
I would like to know too. I'm trying to track down the "official" final fix for issue #5094 so I can cherry pick it... |
@blakeembrey I really don't know why this was closed. Phantom closures :. Will try to investigate at work. |
@mdo, I saw someone else say they all got closed out when the pull request was towards 2.1.2-wip and you or someone removed that branch |
@Yohn Hmm, I never took any action to do that as far as I know. Very odd. |
@mdo, maybe it was because you renamed the 2.1.2-wip branch to 2,2,2-wip? im not sure what happened to that branch, but something did cause its not there |
Does this work on the Android default browser? EDIT: It does seem to work with default android browser. |
@jwg2s Thanks for the response. I never tested on Android - but this PR is fairly old now. I have got an updated copy of the script at https://raw.github.com/blakeembrey/fundamentum/master/js/dropdown.js (isn't written to Bootstrap standards, but fully compatible). If you want to give it a go I would be grateful, and it still contains all the previous changes and fixes I made. |
hello, unfortunately sub-submenus in the navbar still don't work in v2.2.2 on iOS. |
@pseidemann This PR was closed and isn't likely to help with your issue. If you want - your welcome to try the file I linked to and see if it fixes your issues. On a side note, Bootstrap is removing dropdown submens in a future release. |
The code taken from here: twbs/bootstrap#5067 (comment)
The code taken from here: twbs/bootstrap#5067 (comment)
Fixes:
.dropup
,.dropdown
and.pull-left
modifier classes. E.g. If it's pull-left the left and right arrows switch around, if it's a dropup submenu - we start by focusing the last item vs the first which is at the top.