aboutsummaryrefslogtreecommitdiff
path: root/js/src
AgeCommit message (Collapse)AuthorFilesLines
2021-01-19Release v4.6.0. (#32726)v4.6.0XhmikosR13-24/+24
* Bump version to v4.6.0. * Dist
2020-11-25Partially backport #32217 (#32225)Rohit Sharma1-5/+1
Remove unnecessary `_getCustomClass` method. `customClass` will be in the configuration already, even if it is provided in the data attributes, and jQuery's [`addClass()`](https://api.jquery.com/addclass/) method will handle it, either `this.config.customClass` is a function or a class name (even if it is a blank string). Co-authored-by: XhmikosR <[email protected]>
2020-11-24Backport #32224XhmikosR2-4/+4
Be consistent with Popper's name.
2020-11-21Backport #32179 (#32220)Rohit Sharma1-28/+28
Don't hide modal when `config.keyboard` is false
2020-11-20tooltip/popover: add a `customClass` option (#31834)James Remeika1-0/+7
Co-authored-by: XhmikosR <[email protected]>
2020-11-12Check for data-interval on the first slide of carousel - v4 (#31820)Mitchell Bryson1-8/+20
When starting a cycle for a carousel, it only checks for a default interval, and not an interval defined on the slide element via data props. This adds a check in before creating the interval to move to the next slide. Co-authored-by: XhmikosR <[email protected]>
2020-11-01Move js/src/index.js one folder up (#32001)XhmikosR1-34/+0
2020-10-13Prepare v4.5.3. (#31880)v4.5.3XhmikosR14-25/+25
2020-10-02buttons plugin : avoid multiple change event trigger (#31000)Laussel Loïc1-4/+9
- add unit test to count how many events are thrown when widget contains multiple tags inside label - add a parameter to toggle, if click event is provided onto an input then don't trigger another change event already thrown by the browser - simplify the case where toggle interface is called click provide from input itself OR it's a button without label. If label is present, then browser propagate click event from childrens through label and then cause multiple calls to toggle - the test assumes that `.btn` class is always set onto the label if there's one, otherwise need to update this plugin and look for label around the input Test with keyboard, mouse and js click call Co-authored-by: XhmikosR <[email protected]>
2020-09-21Add parentheses around multiple spread conditionsXhmikosR6-7/+7
2020-09-21Cache a few variables.XhmikosR4-9/+12
2020-09-21Unbreak lines and remove a TODO commentXhmikosR3-10/+4
2020-09-21ensure `hidePrevented.bs.modal` can be prevented (#31696)Joakim Riedel1-1/+1
2020-09-18Dropdown: fix variable always evaluating to true (#31673)XhmikosR1-1/+1
2020-09-10Comply to the new rulesXhmikosR13-519/+540
2020-08-06Prepare v4.5.2. (#31444)v4.5.2XhmikosR14-25/+25
2020-08-04Prepare v4.5.1. (#31408)v4.5.1XhmikosR14-25/+25
2020-08-03Clear timeout before showing the toast (#31155)Rohit Sharma1-2/+8
* clear timeout before showing the toast * Add unit test * Remove the check for timeout * Check for clearTimeout to have been called Co-authored-by: XhmikosR <[email protected]> # Conflicts: # js/tests/unit/toast.spec.js
2020-07-06Backport #30326XhmikosR1-1/+14
Prevent overflowing static backdrop modal animation TODO: backport the test too
2020-06-24Update links to point to v4-dev or main branchesXhmikosR14-14/+14
2020-06-10avoid preventing input event onclick (#30992)Laussel Loïc1-3/+2
* instead of stopping event if onclick is triggered on input, call toggle method only if its not on checkbox inside a label * add unit test * add a dedicated test to ensure click event is forward to label Co-authored-by: XhmikosR <[email protected]>
2020-06-04Backport #30936XhmikosR1-0/+2
Add role="dialog" in modals via JavaScript
2020-05-12Bump version to 4.5.0.XhmikosR14-25/+25
2020-05-12Avoid bad scrollbar replacement into width valuesGiovanni Mendoza1-1/+1
Refs #30772
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 cleanupXhmikosR4-5/+3
2020-05-12dropdown.js: switch to a ternaryXhmikosR1-4/+3
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-S1-1/+1
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-17collapse: fix error with jQuery v3.5.0.XhmikosR1-1/+1
2020-04-07Fix event propagation from inactive and disabled dropdowns (#30510) (#30511)luktom1-3/+3
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-31Backport (#30383)Johann-S1-0/+4
fix: ensure totype always return stringified null when null passed
2020-03-16fix `$().button('toggle')` not working for checkbox inside label (#30388)Laussel Loïc1-8/+8
2020-02-17Backport #29886Giovanni Mendoza1-2/+5
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.1XhmikosR14-25/+25
2019-11-26Release v4.4.0 (#29735)v4.4.0XhmikosR14-25/+25
2019-11-02backport #29516: added animation when modal backdrop is staticJohann-S1-8/+29
2019-11-02backport #29523: skip hidden dropdowns while focusingJohann-S1-0/+1
2019-08-27Backport #29298Johann-S1-25/+14
dropdown show method should do the same as toggle
2019-08-27Backport #29277Johann-S1-0/+4
dropdown - destroy old popper.js references
2019-08-27Backport #29251Johann-S2-39/+51
allow to pass popper.js configuration for tooltip/popover and dropdown
2019-07-31Backport #29155Johann-S1-2/+3
allow dynamic modal body for scrollable modals