Merge pull request #6284 from timurgilfanov/fix-6232

Fix typed text becoming invisible when composing long messages
This commit is contained in:
Benoit Marty
2026-03-05 17:31:04 +01:00
committed by GitHub

View File

@@ -103,6 +103,9 @@ fun MarkdownTextInput(
}
addTextChangedListener { editable ->
onTyping(!editable.isNullOrEmpty())
if (state.lineCount != lineCount) {
post { bringPointIntoView(selectionStart) }
}
state.text.update(editable, false)
state.lineCount = lineCount