Skip to content

Commit

Permalink
fix: Ensure objectPlaceholder is always replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
Siobhan committed May 29, 2023
1 parent 96da5bc commit c4c40e0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ class RCTAztecView: Aztec.TextView {
let objectPlaceholder = "\u{FFFC}"
let dictationText = dictationResult.reduce("") { $0 + $1.text }
isInsertingDictationResult = false

if let text = self.text {
self.text = text.replacingOccurrences(of: objectPlaceholder, with: "")
}

if let textRange = self.selectedTextRange {
self.replace(textRange, withText: dictationText)
Expand Down

0 comments on commit c4c40e0

Please sign in to comment.