Skip to content

Commit

Permalink
Making auto complete case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonettas committed Mar 15, 2019
1 parent 5a58254 commit e3fffd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject district0x/district-ui-component-form "0.2.4-SNAPSHOT"
(defproject district0x/district-ui-component-form "0.2.5-SNAPSHOT"
:description "district UI forms library "
:url "https://github.com/district0x/district-ui-component-form"
:license {:name "Eclipse Public License"
Expand Down
2 changes: 1 addition & 1 deletion src/district/ui/component/form/input.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
(on-option-selected o))
selectable-opts (let [input (get @form-data txt-id)]
(when (not-empty input)
(filter #(str/starts-with? % input) ac-options)))
(filter #(str/starts-with? (str/lower-case %) (str/lower-case input)) ac-options)))
key-up-handler (fn [e]
(let [key-code (-> e .-keyCode)
input (get @form-data txt-id)]
Expand Down

0 comments on commit e3fffd3

Please sign in to comment.