mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +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
|
||||
: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-submit-editing (fn [e]
|
||||
:on-submit-editing (fn [_]
|
||||
(if single-line-input?
|
||||
(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]
|
||||
(set-container-width-fn (.-width (.-layout (.-nativeEvent e)))))
|
||||
:on-change (fn [e]
|
||||
|
Loading…
x
Reference in New Issue
Block a user