Skip to content

Commit

Permalink
Fixed a bug in single-dropdown when you press home/end keys in filter…
Browse files Browse the repository at this point in the history
…ed lists and the filtered list was empty & bumped figwheel
  • Loading branch information
Gregg8 committed Apr 18, 2016
1 parent 6bb10c1 commit c48a4ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@

:profiles {:dev {:dependencies [[clj-stacktrace "0.2.8"]
[alandipert/storage-atom "1.2.4" ]
[figwheel "0.5.0-6"]
[figwheel "0.5.2"]
[spellhouse/clairvoyant "0.0-48-gf5e59d3"]
[secretary "1.2.3"]]
:plugins [[lein-cljsbuild "1.1.2"]
[lein-figwheel "0.5.0-6"]
[lein-figwheel "0.5.2"]
[lein-shell "0.5.0"]
[com.cemerick/clojurescript.test "0.3.3"]
[lein-s3-static-deploy "0.1.1-SNAPSHOT"]
Expand Down Expand Up @@ -75,7 +75,8 @@
:output-dir "run/test/compiled/test"
:source-map true
:optimizations :none
:pretty-print true}}]}
:pretty-print true}}]
:test-commands {}} ;; figwheel 0.5.2 required this for some reason

:figwheel {:css-dirs ["run/resources/public/assets/css"]
:server-port ~fig-port
Expand Down
3 changes: 2 additions & 1 deletion src/re_com/dropdown.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
(= offset :end) (dec (count choices))
(nil? current-index) 0
:else (mod (+ current-index offset) (count choices)))]
(when new-index (id-fn (nth choices new-index)))))
(when (and new-index (pos? (count choices)))
(id-fn (nth choices new-index)))))


(defn- choices-with-group-headings
Expand Down

0 comments on commit c48a4ab

Please sign in to comment.