Skip to content

Commit

Permalink
[#17309] fix: wrong cursor position in a pre-filled composer
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Sep 19, 2023
1 parent 9479f02 commit 369adc8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/status_im2/contexts/chat/composer/effects.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
(rn/use-effect
(fn []
(maximized-effect state animations dimensions chat-input)
(reenter-screen-effect state dimensions chat-input)
(layout-effect state)
(kb-default-height-effect state)
(background-effect state animations dimensions chat-input)
Expand All @@ -98,7 +97,11 @@
(empty-effect state animations subscriptions)
(kb/add-kb-listeners props state animations dimensions)
#(component-will-unmount props))
[max-height]))
[max-height])
(rn/use-effect
(fn []
(reenter-screen-effect state dimensions subscriptions))
[max-height subscriptions]))

(defn use-edit
[{:keys [input-ref]}
Expand Down

0 comments on commit 369adc8

Please sign in to comment.