Skip to content

Commit cb59e38

Browse files
fixed bug with multi-step input in composer
1 parent a4e6df9 commit cb59e38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/StreamChatSwiftUI/ChatChannel/Composer/ComposerTextInputView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ struct ComposerTextInputView: UIViewRepresentable {
2424

2525
func updateUIView(_ uiView: InputTextView, context: Context) {
2626
DispatchQueue.main.async {
27-
uiView.text = text
28-
uiView.handleTextChange()
27+
if uiView.markedTextRange == nil {
28+
uiView.text = text
29+
uiView.handleTextChange()
30+
}
2931
}
3032
}
3133

0 commit comments

Comments
 (0)