single event for handling changes.

This commit is contained in:
Bryce Covert
2019-04-26 14:32:37 -07:00
parent 5d5db63ed6
commit 48a8e0ce9f
3 changed files with 34 additions and 12 deletions

View File

@@ -47,7 +47,8 @@
[:div.tags.has-addons
[:span.tag text]
[:a.tag.is-delete {:on-click (fn [] (select [nil "" nil]))}]]]]
^{:key "typeahead"} [:input.input {:type "text"
^{:key "typeahead"}
[:input.input {:type "text"
:class class
:value text
@@ -152,7 +153,10 @@
[:div.control
[:div.tags.has-addons
[:span.tag text]
[:a.tag.is-delete {:on-click (fn [] (select nil) (reset! text-atom nil))}]]]]
[:a.tag.is-delete {:on-click (fn []
(select nil)
(reset! text-atom nil)
(reset! highlighted nil))}]]]]
^{:key "typeahead"} [:input.input {:type "text"
:class class
@@ -172,6 +176,7 @@
:else
(do (select nil)
(reset! highlighted nil)
(reset! text-atom nil)
true)))
:on-key-down (fn [e]