Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/src/dom
diff options
context:
space:
mode:
authorRohit Sharma <rohit2sharma95@gmail.com>2020-11-20 12:13:13 +0300
committerGitHub <noreply@github.com>2020-11-20 12:13:13 +0300
commit2630b05eb34c669d1771200b572efb09eb16c9f5 (patch)
treed5e80b35df67cf1e0264d51c0e57da9119352899 /js/src/dom
parenta96b118f04ab7a048a8e02d0e988c95f1375b511 (diff)
Make the attribute methods bs specific (#32173)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'js/src/dom')
-rw-r--r--js/src/dom/manipulator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/dom/manipulator.js b/js/src/dom/manipulator.js
index faab54b5ef..ed74e0ce26 100644
--- a/js/src/dom/manipulator.js
+++ b/js/src/dom/manipulator.js
@@ -31,11 +31,11 @@ function normalizeDataKey(key) {
const Manipulator = {
setDataAttribute(element, key, value) {
- element.setAttribute(`data-${normalizeDataKey(key)}`, value)
+ element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)
},
removeDataAttribute(element, key) {
- element.removeAttribute(`data-${normalizeDataKey(key)}`)
+ element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)
},
getDataAttributes(element) {
@@ -57,7 +57,7 @@ const Manipulator = {
},
getDataAttribute(element, key) {
- return normalizeData(element.getAttribute(`data-${normalizeDataKey(key)}`))
+ return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))
},
offset(element) {