Skip to content

Commit 4d7fa3d

Browse files
Fixed the text input cursor when a message is being edited
1 parent e56f1d2 commit 4d7fa3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
33

44
# Upcoming
55

6-
### 🔄 Changed
6+
### 🐞 Fixed
7+
- Fixed the text input cursor when a message is being edited
78

89
# [4.31.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.31.0)
910
_April 25, 2023_

Sources/StreamChatSwiftUI/ChatChannel/Composer/MessageComposerView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ public struct MessageComposerView<Factory: ViewFactory>: View, KeyboardReadable
184184
if editedMessage != nil {
185185
becomeFirstResponder()
186186
editedMessageWillShow = true
187+
viewModel.selectedRangeLocation = editedMessage?.text.count ?? 0
187188
}
188189
}
189190
.accessibilityElement(children: .contain)

0 commit comments

Comments
 (0)