- 16 Apr, 2017 1 commit
-
-
Mark Otto authored
-
- 14 Apr, 2017 1 commit
-
-
Patrick H. Lauke authored
* Replace backdrop with simple noop mouse listener As discussed in https://github.com/twbs/bootstrap/pull/22422 the current approach of injecting a backdrop (to work around iOS' broken event delegation for the `click` event) has annoying consequences on touch-enabled laptop/desktop devices. Instead of a backdrop `<div>`, here we simply add extra empty/noop mouse listeners to the immediate children of `<body>` (and remove them when the dropdown is closed) in order to force iOS to properly bubble a `click` resulting from a tap (essentially, method 2 from https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html) This is sufficient (except in rare cases where the user does manage to tap on the body itself, rather than any child elements of body - which is not very likely in an iOS phone/tablet scenario for most layouts) to get iOS to get a grip and do the correct event bubbling/delegation, meaning the regular "click" event will bubble back to the `<body>` when tapping outside of the dropdown, and the dropdown will close properly (just like it already does, even without this fix, in non-iOS touchscreen devices/browsers, like Chrome/Android and Windows on a touch laptop). This approach, though a bit hacky, has no impact on the DOM structure, and has no unforeseen side effects on touch-enabled laptops/desktops. And crucially, it works just fine in iOS. * Remove dropdown backdrop styles * Update doc for dropdowns and touch-enabled devices
-
- 12 Apr, 2017 2 commits
-
-
Patrick H. Lauke authored
...as touch is not exclusive to "mobile" anymore nowadays. also explicitly clarifies this is a fix for iOS, and that it impacts touch laptops etc as well. lastly, renames the variable from "dropdown" to "backdrop" for clarity/consistency
-
Pierre-Denis Vanduynslager authored
-
- 11 Apr, 2017 1 commit
-
-
Patrick H. Lauke authored
-
- 10 Apr, 2017 2 commits
-
-
Patrick H. Lauke authored
* Remove aria-expanded from collapse.js target element aria-expanded="true"/aria-expanded="false" only applies to the trigger, not the element that is being expanded/collapsed. * Tweak collapse.js accessibility section ...to make it clearer that the aria-expanded attribute always just goes on the control. * Fix collapse.js unit tests - reword some of the text to make it clear we're checking behavior of trigger/control - move incorrect aria-expanded out of the <div>s and to the actual trigger/control <a>s - fix incorrect test assertion text output false -> true
-
Patrick H. Lauke authored
* Only change aria-pressed if it's not an input-based radio or checkbox group aria-pressed="true"/aria-pressed="false" is really only useful for making on/off toggles out of, say, `<button>` elements. the attribute is useless (and potentially confusing/conflicting) on, say, `<label>` elements for an existing `<input type="radio">` or similar. * Add unit test for buttons.js and radio/checkbox inputs in button groups
-
- 09 Apr, 2017 1 commit
-
-
Patrick H. Lauke authored
ESC can be used to close modals, but on OS X/macOS this also jumps out of full-screen mode. `preventDefault` suppresses this.
-
- 08 Apr, 2017 1 commit
-
-
Mark Otto authored
-
- 03 Apr, 2017 1 commit
-
-
Ilias authored
-
- 02 Apr, 2017 3 commits
-
-
Ilias authored
-
Pierre Vanduynslager authored
-
Mark Otto authored
-
- 31 Mar, 2017 1 commit
-
-
Johann-S authored
-
- 28 Mar, 2017 5 commits
-
-
Johann-S authored
-
Pierre Vanduynslager authored
-
Mark Otto authored
-
Johann authored
-
Mark Otto authored
-
- 27 Mar, 2017 1 commit
-
-
Johann authored
-
- 26 Mar, 2017 1 commit
-
-
Mark Otto authored
-
- 24 Mar, 2017 2 commits
- 23 Mar, 2017 2 commits
-
-
Johann authored
Fix Modal documentation about _handleUpdate method + move to public scope
-
Pierre Vanduynslager authored
Fix accordion behavior with JQuery interface
-
- 22 Mar, 2017 1 commit
-
-
Johann authored
Carousel - Add attributes from and to for Slid and Slide events
-
- 21 Mar, 2017 2 commits
-
-
Pierre Vanduynslager authored
-
Bardi Harborow authored
-
- 20 Mar, 2017 2 commits
-
-
Bardi Harborow authored
-
Mark Otto authored
-
- 19 Mar, 2017 4 commits
-
-
Mark Otto authored
-
Pierre Vanduynslager authored
* Replace element.offet* by getBoundingClientRect() * Use variable to store BoundingClientRect * Fix cc issue...
-
Johann authored
* Fix getSelectorFromElement when # is a selector * Thanks to @vanduynslagerp remove regex to validate selector
-
Pierre Vanduynslager authored
- Create backdrop only if the menu is actually open (do not create it if the show event is prevented) - Drop the backdrop only when the corresponding menu is closed (do not remove if there is no menu to close or if the hide event is prevented)
-
- 18 Mar, 2017 2 commits
- 12 Mar, 2017 1 commit
-
-
Bardi Harborow authored
-
- 09 Mar, 2017 1 commit
-
-
Johann-S authored
-
- 08 Mar, 2017 1 commit
-
-
Johann-S authored
-
- 07 Mar, 2017 1 commit
-
-
Johann-S authored
-