diff --git a/js/src/dropdown.js b/js/src/dropdown.js index d4a1e001a8..92f841bc43 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -250,7 +250,7 @@ const Dropdown = (($) => { index++ } - if (!~index) { + if (index < 0) { index = 0 }