Skip to content

Commit

Permalink
- update _updateTextInputState bug when typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorel Cruz committed Aug 20, 2021
1 parent 62d5e1d commit 7d73d1c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/src/chips_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,7 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
_value = _value.copyWith(
text: updatedText,
selection: TextSelection.collapsed(offset: textLength),
composing: (Platform.isIOS || replacedLength == textLength)
? TextRange.empty
: TextRange(
start: replacedLength,
end: textLength,
),
composing: TextRange.empty,
);
});
_textInputConnection ??= TextInput.attach(this, textInputConfiguration);
Expand Down

0 comments on commit 7d73d1c

Please sign in to comment.