Fix seach and auto-complete don't input the final email

This commit is contained in:
HuyNguyen
2023-02-15 13:59:12 +07:00
committed by Dat Vu
parent c7cc040d84
commit 5dadd955ce
2 changed files with 1 additions and 2 deletions
@@ -106,7 +106,7 @@ class _TextFieldAutoCompleteEmailAddressState
return widget.optionsBuilder.call(textEditingValue.text.toLowerCase());
},
onSelected: (EmailAddress selectedTag) {
_controller.addTag = selectedTag.asString();
_controller.addTag = selectedTag.emailAddress;
},
fieldViewBuilder: (context, ttec, tfn, onFieldSubmitted) {
return TextFieldTags(
@@ -1,4 +1,3 @@
import 'package:core/core.dart';
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/state/success.dart';