aboutsummaryrefslogtreecommitdiff
path: root/js/src/util
diff options
context:
space:
mode:
authorRohit Sharma <[email protected]>2020-07-22 22:33:11 +0300
committerXhmikosR <[email protected]>2020-11-14 07:09:15 +0200
commit418f17ee2b849dafdc39623ba2378df9229164a7 (patch)
tree7446b75f6b2a8e8ad9f5f8ab8143b4d451c94a14 /js/src/util
parentfe961c192d951bde610cdcd4817f4d8548d33141 (diff)
downloadbootstrap-418f17ee2b849dafdc39623ba2378df9229164a7.tar.xz
bootstrap-418f17ee2b849dafdc39623ba2378df9229164a7.zip
Add `bs` in data attributes
- Add `bs` in data APIs everywhere - Update unit tests
Diffstat (limited to 'js/src/util')
-rw-r--r--js/src/util/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js
index b7fac9c44..b8a53af96 100644
--- a/js/src/util/index.js
+++ b/js/src/util/index.js
@@ -33,7 +33,7 @@ const getUID = prefix => {
}
const getSelector = element => {
- let selector = element.getAttribute('data-target')
+ let selector = element.getAttribute('data-bs-target')
if (!selector || selector === '#') {
const hrefAttr = element.getAttribute('href')
@@ -173,7 +173,7 @@ const reflow = element => element.offsetHeight
const getjQuery = () => {
const { jQuery } = window
- if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
+ if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
return jQuery
}