focusable typeahead

This commit is contained in:
BC
2018-07-06 14:03:40 -07:00
parent de1ead6b9e
commit a58f1f2c60

View File

@@ -24,7 +24,14 @@
valid-matches)]
[:div.typeahead
(if @selected
[:div.input {:class class}
[:div.input {:class class
:tab-index "0"
:on-key-up (fn [e]
(if (= 8 (.-keyCode e))
(do
(select [nil "" nil])
true)
true))}
[:div.control
[:div.tags.has-addons
[:span.tag @text]