We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d0b62 commit dcf7078Copy full SHA for dcf7078
lib/src/fields/form_builder_typeahead.dart
@@ -111,9 +111,10 @@ class _FormBuilderTypeAheadState<T> extends State<FormBuilderTypeAhead<T>> {
111
? _formState.initialValue[widget.attribute]
112
: null);
113
114
- _initialText = (widget.selectionToTextTransformer != null)
115
- ? widget.selectionToTextTransformer(_initialValue ?? '')
116
- : _initialValue?.toString() ?? '';
+ _initialText = ((widget.selectionToTextTransformer != null)
+ ? widget.selectionToTextTransformer(_initialValue)
+ : _initialValue?.toString()) ??
117
+ '';
118
119
_typeAheadController.text = _initialText;
120
0 commit comments