Skip to content

Commit 1ed1451

Browse files
committed
Fixed bug in where textEditingConfiguration for FormBuilderTypeAhead ignored
1 parent 57d516e commit 1ed1451

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/fields/form_builder_typeahead.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ class _FormBuilderTypeAheadState extends State<FormBuilderTypeAhead> {
110110
},
111111
// initialValue: widget.initialValue,
112112
autovalidate: widget.autovalidate,
113-
textFieldConfiguration: TextFieldConfiguration(
113+
textFieldConfiguration: widget.textFieldConfiguration.copyWith(
114114
enabled: !_readonly,
115115
controller: _typeAheadController,
116116
style: _readonly
117117
? Theme.of(context).textTheme.subhead.copyWith(
118118
color: Theme.of(context).disabledColor,
119119
)
120-
: null,
121-
focusNode: _readonly ? AlwaysDisabledFocusNode() : null,
120+
: widget.textFieldConfiguration.style,
121+
focusNode: _readonly ? AlwaysDisabledFocusNode() : widget.textFieldConfiguration.focusNode,
122122
decoration: widget.decoration.copyWith(
123123
enabled: !_readonly,
124124
),

0 commit comments

Comments
 (0)