aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorLouis-Maxime Piton <[email protected]>2023-09-13 09:30:32 +0200
committerGitHub <[email protected]>2023-09-13 09:30:32 +0200
commit9900cf33c0d980353303b0fee381199c9ee89fb8 (patch)
treef75a387bd1e271668ca015eae43a05740ec82372 /js/src
parentd1d49ffe1dc1bdcb75add03dcb8b67810599cd7d (diff)
downloadbootstrap-9900cf33c0d980353303b0fee381199c9ee89fb8.tar.xz
bootstrap-9900cf33c0d980353303b0fee381199c9ee89fb8.zip
Fix collapse multiple ids target (#38989)
Diffstat (limited to 'js/src')
-rw-r--r--js/src/dom/selector-engine.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dom/selector-engine.js b/js/src/dom/selector-engine.js
index 3cecf6f40..a47f72001 100644
--- a/js/src/dom/selector-engine.js
+++ b/js/src/dom/selector-engine.js
@@ -26,10 +26,10 @@ const getSelector = element => {
hrefAttribute = `#${hrefAttribute.split('#')[1]}`
}
- selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null
+ selector = hrefAttribute && hrefAttribute !== '#' ? parseSelector(hrefAttribute.trim()) : null
}
- return parseSelector(selector)
+ return selector
}
const SelectorEngine = {