From 7d73d1c03dc283fa1662dad14e8504a384e176fc Mon Sep 17 00:00:00 2001 From: Jorel Cruz Date: Fri, 20 Aug 2021 11:00:45 +0800 Subject: [PATCH] - update _updateTextInputState bug when typing --- lib/src/chips_input.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/src/chips_input.dart b/lib/src/chips_input.dart index 9731f4b4..c039bb3d 100644 --- a/lib/src/chips_input.dart +++ b/lib/src/chips_input.dart @@ -354,12 +354,7 @@ class ChipsInputState extends State> _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);