mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-03 02:13:01 +02:00
fix(selector-engine): increase coverage for selector engine
This commit is contained in:
@@ -3,7 +3,7 @@ import Util from '../util'
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* Bootstrap (v4.0.0-beta): dom/selectorEngine.js
|
||||
* Bootstrap (v4.1.1): dom/selectorEngine.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -69,6 +69,10 @@ const SelectorEngine = (() => {
|
||||
},
|
||||
|
||||
closest(element, selector) {
|
||||
if (typeof selector !== 'string') {
|
||||
return null
|
||||
}
|
||||
|
||||
return closest(element, selector)
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user