aboutsummaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)AuthorFilesLines
2020-10-13Prepare v4.5.3. (#31880)v4.5.3XhmikosR39-525/+555
2020-10-13Remove the unused js/dist/index.js.mapXhmikosR2-3/+1
2020-10-13Update .eslintrc.jsonXhmikosR1-30/+26
Enforce ES5 for tests
2020-10-02buttons plugin : avoid multiple change event trigger (#31000)Laussel Loïc2-4/+35
- 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 Riedel2-1/+40
2020-09-18Dropdown: fix variable always evaluating to true (#31673)XhmikosR1-1/+1
2020-09-10Comply to the new rulesXhmikosR25-563/+584
2020-09-10Switch to xo and remove babel-eslintXhmikosR1-38/+33
2020-08-06Prepare v4.5.2. (#31444)v4.5.2XhmikosR38-62/+62
2020-08-04Prepare v4.5.1. (#31408)v4.5.1XhmikosR38-671/+169
2020-08-03Add unit test for toast to check clearTimeout to have been called (#31298)Rohit Sharma1-0/+31
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-09Update dependencies, gems and regenerate package-lock.json (#31261)XhmikosR1-2/+2
* @rollup/plugin-node-resolve 8.1.0 * popper.js 1.16.1 * qunit 2.10.1 * rollup 2.21.0
2020-07-06Backport #30326 (Unit test)ysds1-0/+17
2020-07-06Backport #30326XhmikosR1-1/+14
Prevent overflowing static backdrop modal animation TODO: backport the test too
2020-07-06BrowserStack: test on Edge 15XhmikosR1-1/+1
2020-06-24Update links to point to v4-dev or main branchesXhmikosR16-16/+16
2020-06-24Backport #30973XhmikosR1-5/+5
Remove the class `.nav-item` from `.nav-link` inside the non `ul` or `ol` based navs. This makes the consistency for `.nav-item` (This class will not be required on the `.nav-link`). `.nav-item` was only required when you use `.nav-fill` or `.nav-justified` on the `.nav`. In other cases, it was redundant. And the purpose of `.nav-item` on `.nav-link`s can be achieved via flexbox utilities as well (Mentioned in the docs also).
2020-06-10avoid preventing input event onclick (#30992)Laussel Loïc2-3/+42
* 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-04visual/modal.html: fix close buttons placementXhmikosR1-3/+3
2020-06-04Backport #30936XhmikosR3-4/+23
Add role="dialog" in modals via JavaScript
2020-06-04Backport #30742XhmikosR1-2/+3
Update to `@rollup/plugin-babel`
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