From e73db32b047380b87ef838874cfc45f80da2c5c6 Mon Sep 17 00:00:00 2001 From: Jorel Cruz Date: Fri, 20 Aug 2021 11:05:33 +0800 Subject: [PATCH] - update _updateTextInputState - remove platform specific check in composing line --- lib/src/chips_input.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/src/chips_input.dart b/lib/src/chips_input.dart index 9731f4b4..5d599c23 100644 --- a/lib/src/chips_input.dart +++ b/lib/src/chips_input.dart @@ -350,16 +350,10 @@ class ChipsInputState extends State> 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);