Merge pull request #6284 from timurgilfanov/fix-6232
Fix typed text becoming invisible when composing long messages
This commit is contained in:
commit
c7464c708d
1 changed files with 3 additions and 0 deletions
|
|
@ -103,6 +103,9 @@ fun MarkdownTextInput(
|
||||||
}
|
}
|
||||||
addTextChangedListener { editable ->
|
addTextChangedListener { editable ->
|
||||||
onTyping(!editable.isNullOrEmpty())
|
onTyping(!editable.isNullOrEmpty())
|
||||||
|
if (state.lineCount != lineCount) {
|
||||||
|
post { bringPointIntoView(selectionStart) }
|
||||||
|
}
|
||||||
state.text.update(editable, false)
|
state.text.update(editable, false)
|
||||||
state.lineCount = lineCount
|
state.lineCount = lineCount
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue