diff options
| author | GeoSot <[email protected]> | 2021-07-14 09:08:10 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-14 09:08:10 +0300 |
| commit | e45b25e08ed13ae063a9d2f2382f6459bc564cff (patch) | |
| tree | b6174d62107a02400b1d624567e73eb0fe43199b /js/src | |
| parent | 2b297b977ac4d4a98ab2bf52d5c26fc6cd98709f (diff) | |
| download | bootstrap-e45b25e08ed13ae063a9d2f2382f6459bc564cff.tar.xz bootstrap-e45b25e08ed13ae063a9d2f2382f6459bc564cff.zip | |
util.js: remove `Selector.findOne()` dependency (#34441)
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/util/index.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js index 7c317b016..a1af87aa4 100644 --- a/js/src/util/index.js +++ b/js/src/util/index.js @@ -1,4 +1,3 @@ -import SelectorEngine from '../dom/selector-engine' /** * -------------------------------------------------------------------------- @@ -120,7 +119,7 @@ const getElement = obj => { } if (typeof obj === 'string' && obj.length > 0) { - return SelectorEngine.findOne(obj) + return document.querySelector(obj) } return null |
