Commit 2fde5bfc authored by Johann-S's avatar Johann-S Committed by GitHub
Browse files

Merge pull request #23890 from pat270/collapse-js-with-text-truncate

v4 Collapse.js: Accordions with text-truncate causes the page to jump on close
parents 65cb97b3 96659a3c
8 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!25494web pack,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23973aaaa,!23207#22402 : modal: new autofocus & keyboardBtnNav options,!17021v4
Showing with 1 addition and 1 deletion
+1 -1
......@@ -363,7 +363,7 @@ const Collapse = (() => {
$(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
if (event.target.tagName === 'A' && !$.contains(this, event.target)) {
if (event.currentTarget.tagName === 'A') {
event.preventDefault()
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment