aboutsummaryrefslogtreecommitdiff
path: root/js/src/modal.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-07-30 01:23:00 +0300
committerGitHub <[email protected]>2021-07-30 00:23:00 +0200
commit6d707f4801750f1454351d6afe93a80ce4516d1a (patch)
tree168b43e7e45613dc4e6031500538626514ecec89 /js/src/modal.js
parent2bf32ad18017f85380eb6daed3a314b88e1e851a (diff)
downloadbootstrap-6d707f4801750f1454351d6afe93a80ce4516d1a.tar.xz
bootstrap-6d707f4801750f1454351d6afe93a80ce4516d1a.zip
Enable a few eslint-config-xo rules (#34620)
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
Diffstat (limited to 'js/src/modal.js')
-rw-r--r--js/src/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index bb8d97e48..097ecd656 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -217,7 +217,7 @@ class Modal extends BaseComponent {
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
// Don't move modal's DOM position
- document.body.appendChild(this._element)
+ document.body.append(this._element)
}
this._element.style.display = 'block'