aboutsummaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)AuthorFilesLines
2020-05-12Distv4.5.0XhmikosR24-668/+567
2020-05-12Bump version to 4.5.0.XhmikosR14-25/+25
2020-05-12Backport d59de33 from #30772XhmikosR1-0/+39
Add a test about the scrollbar issue on non-integer width
2020-05-12Avoid bad scrollbar replacement into width valuesGiovanni Mendoza1-1/+1
Refs #30772
2020-05-12Removed role="document" from the modal dialog (#30755)Rohit Sharma1-3/+3
2020-05-12Partially revert "Use regex.test() when we want to check for a Boolean. ↵XhmikosR1-2/+2
(#29969)" This partially reverts commit 6c464938039e4fb23af4a35146250da9e1630de4.
2020-05-12collapse.js: combine classesXhmikosR1-4/+2
2020-05-12Minor lint tweaks and rules cleanupXhmikosR8-9/+3
2020-05-12dropdown.js: switch to a ternaryXhmikosR1-4/+3
2020-05-12tests: switch to strictEqual/notStrictEqualXhmikosR5-27/+27
2020-05-12scrollspy.js add more testsXhmikosR1-0/+137
2020-05-12Remove variables used once.XhmikosR2-4/+2
2020-05-12Join/break a few lines, no functional changesXhmikosR6-36/+23
2020-05-07Revert "Avoid bad scrollbar replacement into width values (#30690)"XhmikosR1-5/+2
This reverts commit 5f00bba6529d53d850a0d24ff0415782c8acebe4.
2020-05-07enforce element check on scrollspy targetJohann-S2-2/+2
2020-05-07scrollspy.js: remove temporary variable (#30724)XhmikosR1-2/+1
2020-05-02Avoid bad scrollbar replacement into width values (#30690)Johann-S1-2/+5
2020-04-28Backport #30633Martijn Cuppens1-3/+3
Remove caret element
2020-04-17collapse: fix error with jQuery v3.5.0.XhmikosR1-1/+1
2020-04-17Fix tests for jQuery v3.5.0.XhmikosR2-26/+26
2020-04-10 v4 tabs - accessibility issue when using ul/li semantic (#30381)Laussel Loïc4-51/+47
Add aria-role presentation on li element when ul element has role tablist and remove dropdown from visual tests as they've been removed from doc
2020-04-07Fix event propagation from inactive and disabled dropdowns (#30510) (#30511)luktom2-3/+67
2020-03-31Switch to string constants. (#30490)XhmikosR11-549/+467
This allows the minifier to mangle the constants. It also allows the linter to find unused strings properly. While at it, remove a few unused properties. File Before After Diff -------------------------------------------------------- bootstrap.bundle.min.js 22.09 kB 21.13 kB -0.96 kB (-4.35 %) bootstrap.min.js 15.4 kB 14.46 kB -0.94 kB (-3.86 %)
2020-03-31Remove holder.js leftovers (#30469)XhmikosR1-3/+3
2020-03-31Backport (#30383)Johann-S2-0/+24
fix: ensure totype always return stringified null when null passed
2020-03-16fix `$().button('toggle')` not working for checkbox inside label (#30388)Laussel Loïc2-9/+37
2020-03-09Drop Node.js < 10 support and update all devDependencies.XhmikosR1-2/+2
* sinon 8.x doesn't work with IE, so leave it at 7.x.
2020-02-17Backport #29886Giovanni Mendoza2-2/+54
Close modal with keyboard=true & backdrop=static
2020-02-17Use regex.test() when we want to check for a Boolean. (#29969)XhmikosR1-3/+3
2020-02-17sanitizer.js: Add srcset in the allowed attributes (#29968)XhmikosR1-1/+1
2019-11-28Release v4.4.1.v4.4.1XhmikosR38-62/+62
2019-11-26Release v4.4.0 (#29735)v4.4.0XhmikosR39-406/+621
2019-11-02backport #29516: added animation when modal backdrop is staticJohann-S2-8/+51
2019-11-02backport #29523: skip hidden dropdowns while focusingJohann-S2-0/+42
2019-08-27Backport #29298Johann-S2-26/+50
dropdown show method should do the same as toggle
2019-08-27Backport #29277Johann-S2-1/+49
dropdown - destroy old popper.js references
2019-08-27Backport #29251Johann-S4-39/+94
allow to pass popper.js configuration for tooltip/popover and dropdown
2019-07-31Backport #29155Johann-S2-2/+24
allow dynamic modal body for scrollable modals
2019-07-31Force reflow for fade-in animation (#29113)Shohei Yoshida1-0/+1
2019-07-31Fix Typos across Bootstrap repository (#29082)Kitten King1-1/+1
2019-07-10Ensure button plugin sets/removes active class correctly on page load (#28952)Patrick H. Lauke3-24/+114
* Ensure correct active class is set on button toggles/checkboxes/radios on page load Sanity check, ensures that the UI visually matches the actual values/states of controls. Also ensures that if any autocomplete/autofill happened, this is visually accounted for by having the correct class set. Includes unit tests (and `autocomplete` has been removed from these as it's no longer necessary) * Remove now unnecessary autocomplete attribute As the attribute was there to force/ensure that the visual presentation matched the state, and this is now taken care of programmatically, there's no need to unnecessarily suppress autocomplete...let them autocomplete if they want to...
2019-06-19Add missing dropdown unit test for closing with ESC (#28929)Patrick H. Lauke1-0/+39
Backport of the unit test from https://github.com/twbs/bootstrap/pull/28928
2019-06-18Don't open dropdown on ESC on trigger element (#28912)Patrick H. Lauke2-0/+29
* Don't open dropdown on ESC on trigger element Closes #28751
2019-06-18tooltip dispose:removing only own event handler (#28896)Johann-S1-6/+8
2019-06-18Fix keyboard handling of button-style checkbox/radio button groups (#28834)Patrick H. Lauke2-44/+161
- adds more defensive checks to make sure no unnecessary toggling happens on disabled buttons; this also fixes an up-to-now undiscovered bug where a toggle button with `.disabled` class would still have its `aria-pressed` toggled - adds a set of explicit tests for the above case of disabled buttons and `aria-pressed` - remove a now irrelevant (or at least very nonsensical) test for `<label>` containing both an actionable and a `hidden` `<input>` - expand the test for disabled checkbox to also explicitly test starting conditions (used mainly in my debugging) - ensure that `$btn[0].click()` is used to click checkboxes in tests, rather than the `click()` on the jquery object which is simply a shorthand for `trigger('click')` and does not actually trigger the browser default behavior - remove the `preventDefault()` from the button handling, which was preventing correct keyboard functionality for checkboxes/radio buttons - add extra logic to the button.js code to handle checkboxes correctly and avoid double-triggering as a result of mouse interactions (which saw the checkboxes being toggled twice, thus returning them to their original state) - add logic that prevents the `checked` property from being added incorrectly for any inputs other than radio buttons and checkboxes - added more tests (including the most basic test for a properly triggered fake checkbox button) - work around Firefox bug #1540995 (which this code was hitting after removing the `preventDefault()`, due to Firefox's incorrect toggling of disabled checkboxes when programmatically (but not manually) activated with a `click()` event
2019-05-30Backport #28777.Johann-S2-2/+84
Toast should allow prevent default for hide and show events
2019-05-09Backport #28679.Martijn Cuppens1-2/+2
* Documentation tweaks * Remove redundant `col-12` classes
2019-04-29fix unit tests for chrome mobileJohann-S2-5/+13
2019-04-29Call hide() after `delay` timeysds1-11/+6
2019-04-29karma.conf.js: switch to `CI === true`. (#28588)XhmikosR1-1/+1