Skip to content

Commit 7d69fa9

Browse files
committed
fix: input height when canceling edit while unfocused
1 parent ec5c580 commit 7d69fa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/status_im2/contexts/chat/composer/utils.cljs

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
;; after the `text-value` was cleared. Otherwise the height will be calculated
113113
;; with the old `text-value`, leading to wrong composer height after blur.
114114
(js/setTimeout #(blur-input input-ref) 100)
115+
(.setNativeProps ^js @input-ref (clj->js {:text ""}))
115116
(rf/dispatch [:chat.ui/set-input-content-height constants/input-height])
116117
(rf/dispatch [:chat.ui/cancel-message-edit]))
117118

0 commit comments

Comments
 (0)