aboutsummaryrefslogtreecommitdiff
path: root/js/src
AgeCommit message (Collapse)AuthorFilesLines
2020-06-27use only data target to query elements in our pluginfeat/data-targetJohann-S3-7/+16
2020-06-25Prevent overflowing static backdrop modal animation (#30326)Shohei Yoshida1-1/+14
Co-authored-by: XhmikosR <[email protected]>
2020-06-19Change whitelist to allowlist (#31066)Patrick H. Lauke2-12/+12
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2020-06-18Fix tooltip when hovering a children element (delegateTarget) (#30928)Tanguy Krotoff2-9/+11
Co-authored-by: XhmikosR <[email protected]>
2020-06-17collapse.js: return early.XhmikosR1-13/+13
2020-06-17Remove a couple of variables used onceXhmikosR2-7/+2
2020-06-17Unbreak short linesXhmikosR6-59/+41
2020-06-17data: reword storage key in domJohann-S1-8/+8
2020-06-16Rename "master" to "main". (#31050)XhmikosR18-18/+18
2020-06-15Remove checkbox/radio toggle from button plugin in favor of a CSS only solutionMartijn Cuppens1-73/+5
2020-06-04Add role="dialog" in modals via JavaScript (#30936)Rohit Sharma1-0/+2
2020-05-14Replace double tilde with `Math.floor` (#30691)XhmikosR1-1/+1
Nowadays, browser engines have improved a lot and `Math.floor` is the same, if not faster. Also, clarity is better than micro-optimizations in this case.
2020-05-13Partially Revert "Use regex.test() when we want to check for a Boolean. ↵XhmikosR1-2/+2
(#29969)" (#30770) This partially reverts commit 9c2b9ac74d4abb5ec8b7864054315de3409d5f3a.
2020-05-13Bump version to 5.0.0-alpha1 (#29925)XhmikosR18-29/+29
Also add v4.5.0 in versions and keep README.md pointing to v4.5.0 so that there are no broken stuff.
2020-05-12Avoid bad scrollbar replacement into width valuesGiovanni Mendoza1-1/+1
2020-05-06Revert "Avoid bad scrollbar replacement into width values (#30690)"XhmikosR1-3/+2
This reverts commit 85c4788dedfdec7d681829e3a52ada0c33f8fa8e.
2020-05-06enforce element check on scrollspy target (#30747)Johann-S1-1/+2
2020-05-04scrollspy.js: remove temporary variable (#30724)XhmikosR1-2/+1
2020-04-29Avoid bad scrollbar replacement into width values (#30690)Johann-S1-2/+3
2020-04-28Drop closest from SelectorEngine (#30653)Martijn Cuppens7-31/+13
Co-authored-by: XhmikosR <[email protected]>
2020-04-17Fix crash when pressing ArrowUp the first timeTanguy Krotoff1-1/+4
2020-04-17Replace event.delegateTarget with event.targetTanguy Krotoff2-16/+9
No need for fixEvent() anymore
2020-04-17Replace event.which with event.key and event.buttonTanguy Krotoff4-31/+25
2020-04-17collapse: don't rely on implicit conversion (#30566)XhmikosR1-1/+1
`config` can be an `Object` and we only need to test for `hide` or `show` if it's a `String`
2020-04-09Pass multiple classes to `classList.add` / `classList.remove` (#30537)XhmikosR4-13/+6
This is supported by our currently supported browsers.
2020-04-01Always modal scroll top to 0ysds1-4/+2
2020-03-29Remove `MSPointerEvent` and `ms-touch-action` in tests (#30463)XhmikosR1-1/+1
2020-03-29Use `textContent` instead of `innerText`. (#30462)XhmikosR1-2/+2
It's supported by all of our supported browsers.
2020-03-25fix: remove make array util function (#30430)Johann-S10-51/+35
2020-03-23Use next dropdown menu instead of first of the parentMartijn Cuppens2-20/+31
2020-03-18Remove IE compatibility JS codeJohann-S4-76/+7
2020-03-18fix: ensure `totype` always returns stringified null/undefined when ↵Johann-S1-1/+7
null/undefined is passed (#30383)
2020-03-18Switch to strings constants.XhmikosR11-556/+482
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 23.61 kB 22.61 kB -1.00 kB (-4.23 %) bootstrap.min.js 17.04 kB 16.08 kB -0.96 kB (-5.63 %)
2020-03-09Improvement: harmonize usage of constants (#30285)Sparks4-8/+11
2020-03-09`prev()` function fails when non-element nodes are present (#30117)Martijn Cuppens1-7/+5
The `prev()` function doesn't take nodes other than elements into account. Also we could simplify things a lot using the `previousElementSibling` property. This property isn't fully supported in IE, it only works for elements, but since the `element` variable is an element, we can safely use it here. I've also added an additional test. I don't think we had this issue in v4, since we relied on jQuery back then. Ref. https://developer.mozilla.org/en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
2020-01-10Close modal with keyboard=true & backdrop=static (#29986)Giovanni Mendoza1-2/+5
* Close modal with keyboard=true & backdrop=static
2020-01-07sanitizer.js: Add srcset in the allowed attributes (#29968)XhmikosR1-1/+1
2020-01-07Fix the new lint errors.XhmikosR1-2/+2
2020-01-07Use regex.test() when we want to check for a Boolean. (#29969)XhmikosR3-7/+5
2019-10-31Update normalizeDataKey to match the spec (#29609)Steffen Roßkamp1-1/+1
2019-10-25Added animation when modal backdrop is static (#29516)Higor Araújo dos Anjos1-8/+24
2019-10-17Skip hidden dropdowns while focusing (#29523)Jeremy Jackson2-3/+8
2019-10-07Update devDependencies. (#29447)XhmikosR2-2/+2
2019-10-03return to the original file structure to avoid breaking modularityJohann-S29-9182/+51
2019-09-02ESLint: specify `--report-unused-disable-directives` (#29350)XhmikosR1-2/+0
2019-08-25dropdown show method should do the same as toggleJohann-S2-23/+41
2019-08-22Remaining JS linting TODO (#29289)Markus Hatvan5-27/+25
* Enable and fix all occurrences with no-mixed-operators rule * Take care of the max-depth warning in button.js Signed-off-by: mhatvan <[email protected]>
2019-08-22dropdown - destroy old popper.js referencesJohann-S2-6/+44
2019-08-18Remove useless check for null object with spread operatorJohann-S2-16/+7
2019-08-18Minor wording tweaksXhmikosR2-2/+2