mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-03 02:13:01 +02:00
Use next dropdown menu instead of first of the parent
This commit is contained in:
@@ -66,6 +66,20 @@ const SelectorEngine = {
|
||||
previous = previous.previousElementSibling
|
||||
}
|
||||
|
||||
return []
|
||||
},
|
||||
|
||||
next(element, selector) {
|
||||
let next = element.nextElementSibling
|
||||
|
||||
while (next) {
|
||||
if (this.matches(next, selector)) {
|
||||
return [next]
|
||||
}
|
||||
|
||||
next = next.nextElementSibling
|
||||
}
|
||||
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user