[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:
Ihor Kysylevych 2018-02-19 18:59:08 +02:00 committed by Andrey Shovkoplyas
parent 44b10850ed
commit 0a17d75ff4
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 1 additions and 1 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 (str input-text "\n")}))))
(.setNativeProps @input-ref (clj->js {:text input-text}))))
:on-layout (fn [e]
(set-container-width-fn (.-width (.-layout (.-nativeEvent e)))))
:on-change (fn [e]