aboutsummaryrefslogtreecommitdiff
path: root/js/src
AgeCommit message (Collapse)AuthorFilesLines
2017-08-10bump to betav4.0.0-betaMark Otto11-21/+21
2017-07-04Dropdown - Disable applyStyle modifier instead of removing inline style ↵Johann-S1-7/+3
applied by Popper.js
2017-06-17Detect if the dropdown is in a navbar or not when update is calledJohann-S1-0/+1
2017-06-17Some .navbar .dropdown-menu optimisation (#22776)Catalin Zalog1-15/+0
2017-06-17Reset Popper.js styles for Dropdowns in navbarJohann-S1-16/+51
2017-06-16fix some errors in our jsJohann-S1-5/+3
2017-06-15Rename popover classesMark Otto1-4/+4
Part of an update to align the naming schemes across our components. - Renames .popover-title to .popover-header - Renames .popover-content to .popover-body Refs: #22092
2017-06-14Collapse supports multi-target thanks to @vanduynslagerp (#22713)Johann-S1-8/+27
2017-05-31Remove the use of x-arrow attribute for Tooltips/Popovers arrowsJohann-S2-10/+14
2017-05-24Placement auto for popoversJohann-S1-1/+1
2017-05-24Placement auto for tooltipsJohann-S1-0/+1
2017-05-23Use Popper.js to manage arrow positionJohann-S2-2/+2
2017-05-22Better management of dropdown/dropup with alignmentJohann-S1-22/+26
2017-05-17Use popper to align dropdown menu instead of using css with importantJohann-S1-3/+28
2017-05-14Change fallbackPlacement to flip by default for Tooltips/PopoversJohann-S1-4/+3
2017-05-14Fix bad position for Tooltips with animation at trueJohann-S1-5/+19
2017-05-14Use _jQueryInterface for Dropdown to call toggle methodJohann-S1-28/+26
2017-05-14Add fallbackPlacement option for Tooltip and PopoverJohann-S2-26/+32
2017-05-14Allow to disable flip behaviour on Dropdown + documentationJohann-S1-2/+12
2017-05-14Add an update method to allow to update position for ↵Johann-S2-2/+16
Tooltip/Popover/Dropdown manually
2017-05-14Fix some css for the arrow of Popover/Tooltip + update documentationJohann-S1-3/+3
2017-05-14Better placement for Dropdown + Handle flip of Tooltip/PopoverJohann-S2-2/+14
2017-05-14Remove totaly Tether from documentation + dependenciesJohann-S2-5/+5
2017-05-14Handle dropup for DropdownJohann-S1-2/+9
2017-05-14Fix unit tests + Update Popper to 1.6.0Johann-S2-7/+9
2017-05-14Remove constraints option and check every optionsJohann-S2-14/+12
2017-05-14Begin to use Popper for DropdownJohann-S2-9/+91
2017-05-14Fix arrow for tooltip and popoverJohann-S1-11/+8
2017-05-14Add attachment classesJohann-S2-0/+30
2017-05-14Begin to add arrow to Popover and TooltipJohann-S2-4/+7
2017-05-14Use Popper for tooltip and popoverJohann-S2-53/+22
2017-04-28Fix typo removeData for Tabs pluginJoyce Babu1-1/+1
Should remove `data` not `class` on dispose
2017-04-26Fix Toggle buttons don't honor [disabled] or .disabledAnna1-0/+6
2017-04-25Detach accordion from card without requiring 'data-children'Pierre Vanduynslager1-12/+4
2017-04-20Fix for copy/paste error in iOS hack to tooltipsPatrick H. Lauke1-2/+1
(with apologies, this slipped through due to build system problems on my end)
2017-04-20Tweak iOS hack for dropdownPatrick H. Lauke1-2/+2
Tweak to https://github.com/twbs/bootstrap/pull/22426, where the wrong selector slipped through the net (selecting all of `<body>`s grand-children rather than children)
2017-04-20Add iOS hack to tooltipsPatrick H. Lauke1-0/+16
Same hack as in https://github.com/twbs/bootstrap/pull/22426 (modulo the selector, which is wrong in that PR and will be updated in a separate PR) to get tooltips to work correctly on iOS. Dynamically adds/removes empty (`noop`) `touchstart` event handlers to all children of `<body>` in order to coax iOS into proper event delegation/bubbling
2017-04-17Fix carousel "hover" behavior on touch-enabled devicesPatrick H. Lauke1-11/+30
* Add carousel mouse listeners even if touch events enabled - touch events are enabled not just on "mobile", just also on touch-enabled desktop/laptop devices; additionally, it's possible to pair a mouse with traditionally touch-only devices (e.g. Android phones/tablets); currently, in these situations the carousel WON'T pause even when using a mouse * Restart cycle after touchend as `mouseenter` is fired as part of the touch compatibility events, the previous change results in carousels which cycle until the user tapped/interacted with them. after that they stop cycling (as `mouseleave` is not sent to the carousel after user scrolled/tapped away). this fix resets the cycling after `touchend` - essentially returning to the previous behavior, where on touch the carousel essentially never pauses, but now with the previous fix it at least pauses correctly for mouse users on touch-enabled devices. includes documentation for this new behavior.
2017-04-14Replace dropdown backdrop hack with cleaner JS-only hackPatrick H. Lauke1-14/+9
* 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
2017-04-12Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager1-5/+6
2017-04-12Reword "mobile" to "touch-enabled"Patrick H. Lauke1-5/+6
...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
2017-04-12IndentPierre-Denis Vanduynslager1-1/+1
2017-04-10Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager2-6/+6
2017-04-10Fix collapse.js aria-expanded behaviorPatrick H. Lauke1-4/+0
* 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
2017-04-10Only change aria-pressed if it's not an input-based radio or checkbox groupPatrick H. Lauke1-2/+6
* 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
2017-04-09Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager1-0/+1
2017-04-09Prevent default for ESC in modal.jsPatrick H. Lauke1-0/+1
ESC can be used to close modals, but on OS X/macOS this also jumps out of full-screen mode. `preventDefault` suppresses this.
2017-04-08Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager8-116/+168
2017-04-02Fix #18373: properly adjust padding-right of body and fixed elements when ↵Ilias1-11/+43
opening or closing modal
2017-04-02Tabs/Scrollspy/.nav/.list-group/.active independent of markup (<nav>, ↵Pierre Vanduynslager2-24/+13
.nav-item, <li> etc...)