diff --git a/lib/src/chips_input.dart b/lib/src/chips_input.dart index cfc00661..fe7cb65c 100644 --- a/lib/src/chips_input.dart +++ b/lib/src/chips_input.dart @@ -125,9 +125,6 @@ class ChipsInputState extends State> void initState() { super.initState(); _chips.addAll(widget.initialValue); - _suggestions = widget.initialSuggestions - ?.where((r) => !_chips.contains(r)) - ?.toList(growable: false); // _focusAttachment = _focusNode.attach(context); _suggestionsBoxController = SuggestionsBoxController(context); @@ -165,6 +162,9 @@ class ChipsInputState extends State> void _handleFocusChanged() { if (_focusNode.hasFocus) { _openInputConnection(); + _suggestions = widget.initialSuggestions + ?.where((r) => !_chips.contains(r)) + ?.toList(growable: false); _suggestionsBoxController.open(); } else { _closeInputConnectionIfNeeded();