We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c68366 commit 0d60e1aCopy full SHA for 0d60e1a
shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm
@@ -621,7 +621,9 @@ - (BOOL)hasText {
621
}
622
623
- (void)insertText:(NSString*)text {
624
- _selectionAffinity = _kTextAffinityDownstream;
+ // The affinity is unknown here. Set to "" so that Flutter interprets it
625
+ // as ambiguous and uses a fallback affinity.
626
+ _selectionAffinity = "";
627
[self replaceRange:_selectedTextRange withText:text];
628
629
0 commit comments