Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

Merge pull request #1384 from Cyrine-benabid/fix-option_button_doesnt-close_popover

Nathan.fooo20f527f4eb78
diff --cc frontend/app_flowy/lib/plugins/grid/presentation/widgets/common/text_field.dart
index 50d264512d,cbb28ae1c7..895b3a8ee1
--- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/common/text_field.dart
+++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/common/text_field.dart
@@@ -35,11 -36,8 +37,11 @@@ class _InputTextFieldState extends Stat
@override
void initState() {
- _focusNode = FocusNode();
+ _focusNode = widget.focusNode ?? FocusNode();
_controller = TextEditingController(text: widget.text);
+ SchedulerBinding.instance.addPostFrameCallback((Duration _) {
+ _focusNode.requestFocus();
+ });
_focusNode.addListener(notifyDidEndEditing);
super.initState();