[ISSUE #3396] Fixed incorrect atom access

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Julien Eluard 2018-02-21 16:05:43 +01:00
parent 6098da936a
commit cc6414c204
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 3 additions and 2 deletions

View File

@ -32,10 +32,11 @@
:blur-on-submit false :blur-on-submit false
:on-focus #(re-frame/dispatch [:set-chat-ui-props {:input-focused? true}]) :on-focus #(re-frame/dispatch [:set-chat-ui-props {:input-focused? true}])
:on-blur #(re-frame/dispatch [:set-chat-ui-props {:input-focused? false}]) :on-blur #(re-frame/dispatch [:set-chat-ui-props {:input-focused? false}])
:on-submit-editing (fn [e] :on-submit-editing (fn [_]
(if single-line-input? (if single-line-input?
(re-frame/dispatch [:send-current-message]) (re-frame/dispatch [:send-current-message])
(.setNativeProps input-ref (clj->js {:text input-text})))) (when @input-ref
(.setNativeProps @input-ref (clj->js {:text input-text})))))
:on-layout (fn [e] :on-layout (fn [e]
(set-container-width-fn (.-width (.-layout (.-nativeEvent e))))) (set-container-width-fn (.-width (.-layout (.-nativeEvent e)))))
:on-change (fn [e] :on-change (fn [e]