Trim custom dropdown parts
This commit is contained in:
parent
9110e81959
commit
b96822ead8
|
|
@ -290,7 +290,8 @@ class _CustomFormFieldState extends State<CustomFormField> {
|
|||
].contains(_fieldType)) {
|
||||
value = '$value|$_fieldType';
|
||||
} else if (_fieldType == kFieldTypeDropdown) {
|
||||
value = '$value|${_optionsController.text.trim()}';
|
||||
value =
|
||||
'$value|${_optionsController.text.split(',').map((part) => part.trim()).join(',')}';
|
||||
}
|
||||
|
||||
widget.onChanged(value);
|
||||
|
|
|
|||
Loading…
Reference in New Issue