diff options
| author | XhmikosR <[email protected]> | 2021-07-30 01:23:00 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-30 00:23:00 +0200 |
| commit | 6d707f4801750f1454351d6afe93a80ce4516d1a (patch) | |
| tree | 168b43e7e45613dc4e6031500538626514ecec89 /js/src/modal.js | |
| parent | 2bf32ad18017f85380eb6daed3a314b88e1e851a (diff) | |
| download | bootstrap-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.js | 2 |
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' |
