focusable typeahead
This commit is contained in:
@@ -24,7 +24,14 @@
|
|||||||
valid-matches)]
|
valid-matches)]
|
||||||
[:div.typeahead
|
[:div.typeahead
|
||||||
(if @selected
|
(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.control
|
||||||
[:div.tags.has-addons
|
[:div.tags.has-addons
|
||||||
[:span.tag @text]
|
[:span.tag @text]
|
||||||
|
|||||||
Reference in New Issue
Block a user