diff --git a/packages/wyatt_ui_kit/lib/src/components/text_inputs/text_input_screen.dart b/packages/wyatt_ui_kit/lib/src/components/text_inputs/text_input_screen.dart index 34836c2d..440fc748 100644 --- a/packages/wyatt_ui_kit/lib/src/components/text_inputs/text_input_screen.dart +++ b/packages/wyatt_ui_kit/lib/src/components/text_inputs/text_input_screen.dart @@ -250,9 +250,11 @@ class TextInputScreen extends CubitScreen { Widget onBuild(BuildContext context, TextInputState state) { final style = _resolve(context, state); return Focus( + descendantsAreFocusable: true, onFocusChange: (hasFocus) { if (hasFocus) { bloc(context).onFocus(); + (focusNode ?? _focusNode).requestFocus(); } else { bloc(context).onUnfocus(); } @@ -279,6 +281,7 @@ class TextInputScreen extends CubitScreen { expand: expand ?? true, expanded: _wrapperExpanded(state), child: TextField( + focusNode: focusNode ?? _focusNode, onTap: onTap, onChanged: (value) { onChanged?.call(value); @@ -290,7 +293,6 @@ class TextInputScreen extends CubitScreen { }, onTapOutside: onTapOutside, controller: controller ?? _controller, - focusNode: focusNode ?? _focusNode, textAlignVertical: textAlignVertical ?? TextAlignVertical.top, style: style.inputStyle ?? this.style, decoration: InputDecoration(