Commit 40eb170 Jorel Cruz
committed
1 parent 62d5e1d commit 40eb170 Copy full SHA for 40eb170
File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -349,17 +349,11 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
349
349
"${replaceText ? '' : _value .normalCharactersText }" +
350
350
putText;
351
351
setState (() {
352
- final textLength = updatedText.characters.length;
353
- final replacedLength = _chips.length;
352
+ final textLength = updatedText.length;
354
353
_value = _value.copyWith (
355
354
text: updatedText,
356
355
selection: TextSelection .collapsed (offset: textLength),
357
- composing: (Platform .isIOS || replacedLength == textLength)
358
- ? TextRange .empty
359
- : TextRange (
360
- start: replacedLength,
361
- end: textLength,
362
- ),
356
+ composing: TextRange .empty,
363
357
);
364
358
});
365
359
_textInputConnection ?? = TextInput .attach (this , textInputConfiguration);
You can’t perform that action at this time.
0 commit comments