Fix wrong derefs

Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
Eric Dvorsak 2018-02-21 02:00:42 +01:00
parent f4f1ab4e2f
commit 3c3c347123
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
:on-submit-editing (fn [e]
(if single-line-input?
(re-frame/dispatch [:send-current-message])
(.setNativeProps @input-ref (clj->js {:text input-text}))))
(.setNativeProps input-ref (clj->js {:text input-text}))))
:on-layout (fn [e]
(set-container-width-fn (.-width (.-layout (.-nativeEvent e)))))
:on-change (fn [e]
@ -125,7 +125,7 @@
:editable true
:on-submit-editing (fn []
(when-not (or (string/blank? seq-arg-input-text)
(get-in @command [:command :hide-send-button]))
(get-in command [:command :hide-send-button]))
(re-frame/dispatch [:send-seq-argument]))
(utils/set-timeout
#(re-frame/dispatch [:chat-input-focus :seq-input-ref])