Skip to content

Commit 57d516e

Browse files
committed
Fixed bug in where focuNode for FormBuilderTextField is ignored
1 parent cf874d8 commit 57d516e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/fields/form_builder_text_field.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class FormBuilderTextFieldState extends State<FormBuilderTextField> {
125125
},
126126
enabled: !_readonly,
127127
style: widget.style,
128-
focusNode: _readonly ? AlwaysDisabledFocusNode() : null,
128+
focusNode: _readonly ? AlwaysDisabledFocusNode() : widget.focusNode,
129129
decoration: widget.decoration.copyWith(
130130
enabled: !_readonly,
131131
),

0 commit comments

Comments
 (0)