Skip to content

Commit

Permalink
Revert "Do not default to downstream affinity on iOS insertText (flut…
Browse files Browse the repository at this point in the history
…ter#13852)" (flutter#14053)

This reverts commit 0d60e1a.
  • Loading branch information
GaryQian authored Nov 27, 2019
1 parent bc07e6a commit bcb8267
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,7 @@ - (BOOL)hasText {
}

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

Expand Down

0 comments on commit bcb8267

Please sign in to comment.