Fix Markdown text input losing scroll position while typing

This commit is contained in:
Timur Gilfanov 2026-03-05 10:43:31 +04:00
parent fdbe518db3
commit a8d6baee8c

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