diff --git a/ios/EnrichedTextInputView.mm b/ios/EnrichedTextInputView.mm index d588ab0f..e98d5ab4 100644 --- a/ios/EnrichedTextInputView.mm +++ b/ios/EnrichedTextInputView.mm @@ -921,7 +921,7 @@ - (void)startMentionWithIndicator:(NSString *)indicator { MentionStyle *mentionStyleClass = (MentionStyle *)stylesDict[@([MentionStyle getStyleType])]; if(mentionStyleClass == nullptr) { return; } - if([self handleStyleBlocksAndConflicts:[MentionStyle getStyleType] range:[[mentionStyleClass getActiveMentionRange] rangeValue]]) { + if([self handleStyleBlocksAndConflicts:[MentionStyle getStyleType] range:textView.selectedRange]) { [mentionStyleClass startMentionWithIndicator:indicator]; [self anyTextMayHaveBeenModified]; }