mirror of https://github.com/status-im/reagent.git
Make todomvc feel more responsive
This commit is contained in:
parent
d188be004e
commit
b1bec33448
|
@ -35,7 +35,7 @@
|
||||||
[:input (merge props
|
[:input (merge props
|
||||||
{:type "text" :value @val :on-blur save
|
{:type "text" :value @val :on-blur save
|
||||||
:on-change #(reset! val (-> % .-target .-value))
|
:on-change #(reset! val (-> % .-target .-value))
|
||||||
:on-key-up #(case (.-which %)
|
:on-key-down #(case (.-which %)
|
||||||
13 (save)
|
13 (save)
|
||||||
27 (stop)
|
27 (stop)
|
||||||
nil)})])))
|
nil)})])))
|
||||||
|
|
Loading…
Reference in New Issue