mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Second element of find and findOne should be optional, not the first one
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ class Alert {
|
||||
let parent = false
|
||||
|
||||
if (selector) {
|
||||
parent = SelectorEngine.find(selector)[0]
|
||||
parent = SelectorEngine.findOne(selector)
|
||||
}
|
||||
|
||||
if (!parent) {
|
||||
|
||||
Reference in New Issue
Block a user