Skip to content

Commit 62cc23b

Browse files
authored
Merge pull request #6284 from timurgilfanov/fix-6232
Fix typed text becoming invisible when composing long messages
2 parents ef204ea + aeb42f7 commit 62cc23b

File tree

1 file changed

+3
-0
lines changed
  • libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/components/markdown

1 file changed

+3
-0
lines changed

libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/components/markdown/MarkdownTextInput.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ fun MarkdownTextInput(
103103
}
104104
addTextChangedListener { editable ->
105105
onTyping(!editable.isNullOrEmpty())
106+
if (state.lineCount != lineCount) {
107+
post { bringPointIntoView(selectionStart) }
108+
}
106109
state.text.update(editable, false)
107110
state.lineCount = lineCount
108111

0 commit comments

Comments
 (0)