Revert to old submit behaviour

This commit is contained in:
janherich 2018-07-09 11:17:50 +02:00
parent dabaf3216d
commit a7a7543c53
No known key found for this signature in database
GPG Key ID: C23B473AFBE94D13
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@
:on-focus #(re-frame/dispatch [:set-chat-ui-props {:input-focused? true
:messages-focused? false}])
:on-blur #(re-frame/dispatch [:set-chat-ui-props {:input-focused? false}])
:on-submit-editing #(re-frame/dispatch [:send-current-message])
:on-submit-editing #(when single-line-input?
(re-frame/dispatch [:send-current-message]))
:on-layout #(set-container-width-fn (.-width (.-layout (.-nativeEvent %))))
:on-change #(re-frame/dispatch [:set-chat-input-text (.-text (.-nativeEvent %))])
:on-selection-change #(let [s (-> (.-nativeEvent %)