mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
Merge pull request #18393 from twbs/dropdown-bitwise-less-tricksy
dropdown.js: Use more straightforward phrasing for index bound check
This commit is contained in:
commit
74f1d3b9b8
@ -250,7 +250,7 @@ const Dropdown = (($) => {
|
||||
index++
|
||||
}
|
||||
|
||||
if (!~index) {
|
||||
if (index < 0) {
|
||||
index = 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user