aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/src/dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index f947d2aa1..0d06af5b5 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
}