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
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/dom/manipulator.js')
-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) {