single event for handling changes.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user