[FIX #3351] chat: fix extra new lines adding in the text input on enter (ios)
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
44b10850ed
commit
0a17d75ff4
|
@ -35,7 +35,7 @@
|
||||||
:on-submit-editing (fn [e]
|
:on-submit-editing (fn [e]
|
||||||
(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 (str input-text "\n")}))))
|
(.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…
Reference in New Issue