Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 35e66ec

Browse files
authored
Revert "Do not default to downstream affinity on iOS insertText (#13852)"
This reverts commit 0d60e1a.
1 parent f61bec8 commit 35e66ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,7 @@ - (BOOL)hasText {
621621
}
622622

623623
- (void)insertText:(NSString*)text {
624-
// The affinity is unknown here. Set to "" so that Flutter interprets it
625-
// as ambiguous and uses a fallback affinity.
626-
_selectionAffinity = "";
624+
_selectionAffinity = _kTextAffinityDownstream;
627625
[self replaceRange:_selectedTextRange withText:text];
628626
}
629627

0 commit comments

Comments
 (0)