Skip to content

Commit f3ce536

Browse files
committed
fix: update mention editing when toggling styles as well
1 parent eafe33b commit f3ce536

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ios/EnrichedTextInputView.mm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,8 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &
533533
emitHtml = newViewProps.isOnChangeHtmlSet;
534534

535535
[super updateProps:props oldProps:oldProps];
536-
// mandatory text and height checks
536+
// run the changes callback
537537
[self anyTextMayHaveBeenModified];
538-
[self tryUpdatingHeight];
539538

540539
// autofocus - needs to be done at the very end
541540
if(isFirstMount && newViewProps.autoFocus) {
@@ -1073,6 +1072,9 @@ - (void)anyTextMayHaveBeenModified {
10731072
[h3Style handleImproperHeadings];
10741073
}
10751074

1075+
// additionally, manage selection based changes
1076+
[self manageSelectionBasedChanges];
1077+
10761078
// placholder management
10771079
if(!_placeholderLabel.hidden && textView.textStorage.string.length > 0) {
10781080
[self setPlaceholderLabelShown:NO];

0 commit comments

Comments
 (0)