From 5afdb5de354c3171eadef64366f9c2267743cb78 Mon Sep 17 00:00:00 2001 From: Akheel Muhammed <73631606+not-shoyo@users.noreply.github.com> Date: Mon, 27 Mar 2023 10:17:22 +0530 Subject: [PATCH] Fix: #2028 auto enter edit mode for text field. (#2096) * chore(): initial commit to make AppFlowy Work Signed-off-by: not-shoyo * fix: #2028, fix auto-entering edit mode Make text field request for focus when popover changes. Signed-off-by: not-shoyo * Update section.dart * Update input_service.dart * Update input_service.dart * Update input_service.dart --------- Signed-off-by: not-shoyo --- .../grid/presentation/widgets/header/field_editor.dart | 2 ++ .../workspace/presentation/home/menu/app/section/section.dart | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_editor.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_editor.dart index 29e38e7a72..ff0abf92af 100644 --- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_editor.dart +++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_editor.dart @@ -147,6 +147,8 @@ class _FieldNameTextFieldState extends State<_FieldNameTextField> { widget.popoverMutex.listenOnPopoverChanged(() { if (focusNode.hasFocus) { focusNode.unfocus(); + } else { + focusNode.requestFocus(); } }); diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart index b16d9b0e57..c134ca8985 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart @@ -58,7 +58,6 @@ class ViewSection extends StatelessWidget { .read() .add(ViewSectionEvent.moveView(oldIndex, index)); }, - ignorePrimaryScrollController: true, children: children, ); }