1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-27 13:59:06 +02:00

Second element of find and findOne should be optional, not the first one

This commit is contained in:
Johann-S
2017-08-27 00:57:27 +02:00
committed by XhmikosR
parent b69fa9db95
commit 6b5850212e
2 changed files with 4 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ class Alert {
let parent = false
if (selector) {
parent = SelectorEngine.find(selector)[0]
parent = SelectorEngine.findOne(selector)
}
if (!parent) {