Skip to content

Commit

Permalink
- update _updateTextInputState
Browse files Browse the repository at this point in the history
	- remove platform specific check in composing line
  • Loading branch information
Jorel Cruz committed Aug 20, 2021
1 parent 62d5e1d commit e73db32
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/src/chips_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,10 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
putText;
setState(() {
final textLength = updatedText.characters.length;
final replacedLength = _chips.length;
_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 e73db32

Please sign in to comment.