diff options
author | Rohit Sharma <rohit2sharma95@gmail.com> | 2020-11-20 12:13:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 12:13:13 +0300 |
commit | 2630b05eb34c669d1771200b572efb09eb16c9f5 (patch) | |
tree | d5e80b35df67cf1e0264d51c0e57da9119352899 /js/src/dom | |
parent | a96b118f04ab7a048a8e02d0e988c95f1375b511 (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.js | 6 |
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) { |