Selaa lähdekoodia

Fix: #2028 auto enter edit mode for text field. (#2096)

* chore(): initial commit to make AppFlowy Work

Signed-off-by: not-shoyo <[email protected]>

* fix: #2028, fix auto-entering edit mode

Make text field request for focus when popover changes.

Signed-off-by: not-shoyo <[email protected]>

* Update section.dart

* Update input_service.dart

* Update input_service.dart

* Update input_service.dart

---------

Signed-off-by: not-shoyo <[email protected]>
Akheel Muhammed 2 vuotta sitten
vanhempi
commit
5afdb5de35

+ 2 - 0
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();
       }
     });
 

+ 0 - 1
frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart

@@ -58,7 +58,6 @@ class ViewSection extends StatelessWidget {
             .read<ViewSectionBloc>()
             .add(ViewSectionEvent.moveView(oldIndex, index));
       },
-      ignorePrimaryScrollController: true,
       children: children,
     );
   }