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++
|
index++
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!~index) {
|
if (index < 0) {
|
||||||
index = 0
|
index = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue