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.controller,
|
||||||
this.expandMode = ExpandMode.EXPAND,
|
this.expandMode = ExpandMode.EXPAND,
|
||||||
}
|
}
|
||||||
);
|
) {
|
||||||
|
_gapBetweenTagChangedAndFindSuggestion = Timer(
|
||||||
|
const Duration(seconds: 1),
|
||||||
|
_handleGapBetweenTagChangedAndFindSuggestion);
|
||||||
|
}
|
||||||
|
|
||||||
Widget build() {
|
Widget build() {
|
||||||
return Row(
|
return Row(
|
||||||
@@ -193,9 +197,6 @@ class EmailAddressInputBuilder {
|
|||||||
setState(() => listEmailAddress.add(EmailAddress(null, value)));
|
setState(() => listEmailAddress.add(EmailAddress(null, value)));
|
||||||
_onUpdateListEmailAddressAction?.call(_prefixEmailAddress, listEmailAddress);
|
_onUpdateListEmailAddressAction?.call(_prefixEmailAddress, listEmailAddress);
|
||||||
}
|
}
|
||||||
_gapBetweenTagChangedAndFindSuggestion = Timer(
|
|
||||||
const Duration(seconds: 1),
|
|
||||||
_handleGapBetweenTagChangedAndFindSuggestion);
|
|
||||||
},
|
},
|
||||||
findSuggestions: _findSuggestions,
|
findSuggestions: _findSuggestions,
|
||||||
searchAllSuggestions: () async {
|
searchAllSuggestions: () async {
|
||||||
|
|||||||
Reference in New Issue
Block a user