Skip to content

Commit 807dd6c

Browse files
committed
fix: use only mention editing callback on style changes
1 parent e4b32a6 commit 807dd6c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ios/EnrichedTextInputView.mm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,11 @@ - (void)anyTextMayHaveBeenModified {
10811081
[h3Style handleImproperHeadings];
10821082
}
10831083

1084-
// additionally, manage selection based changes
1085-
[self manageSelectionBasedChanges];
1084+
// manage mention editing also here
1085+
MentionStyle *mentionStyle = stylesDict[@([MentionStyle getStyleType])];
1086+
if(mentionStyle != nullptr) {
1087+
[mentionStyle manageMentionEditing];
1088+
}
10861089

10871090
// placholder management
10881091
if(!_placeholderLabel.hidden && textView.textStorage.string.length > 0) {

0 commit comments

Comments
 (0)