]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
util.js: remove `Selector.findOne()` dependency (#34441)
authorGeoSot <geo.sotis@gmail.com>
Wed, 14 Jul 2021 06:08:10 +0000 (09:08 +0300)
committerGitHub <noreply@github.com>
Wed, 14 Jul 2021 06:08:10 +0000 (09:08 +0300)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/util/index.js

index 7c317b016205635bf9b76d12fe61a08b73526682..a1af87aa479e95f00f0c91a700cb63af2c64d4d3 100644 (file)
@@ -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