TF-876 Fix delay timer is always null while autocomplete change
This commit is contained in:
@@ -84,7 +84,11 @@ class EmailAddressInputBuilder {
|
||||
this.controller,
|
||||
this.expandMode = ExpandMode.EXPAND,
|
||||
}
|
||||
);
|
||||
) {
|
||||
_gapBetweenTagChangedAndFindSuggestion = Timer(
|
||||
const Duration(seconds: 1),
|
||||
_handleGapBetweenTagChangedAndFindSuggestion);
|
||||
}
|
||||
|
||||
Widget build() {
|
||||
return Row(
|
||||
@@ -193,9 +197,6 @@ class EmailAddressInputBuilder {
|
||||
setState(() => listEmailAddress.add(EmailAddress(null, value)));
|
||||
_onUpdateListEmailAddressAction?.call(_prefixEmailAddress, listEmailAddress);
|
||||
}
|
||||
_gapBetweenTagChangedAndFindSuggestion = Timer(
|
||||
const Duration(seconds: 1),
|
||||
_handleGapBetweenTagChangedAndFindSuggestion);
|
||||
},
|
||||
findSuggestions: _findSuggestions,
|
||||
searchAllSuggestions: () async {
|
||||
|
||||
Reference in New Issue
Block a user