mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 02:35:54 +00:00
[ISSUE #3396] Fixed incorrect atom access
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
6098da936a
commit
cc6414c204
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user