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.

feat: unfocus CreateOptionTextField when popover state changes

Cyrine-benabid16a8dbc6cef0
diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart
index fec93c1c47..eeb1278923 100644
--- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart
+++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart
@@ -289,6 +289,11 @@ class __CreateOptionTextFieldState extends State<_CreateOptionTextField> {
widget.popoverMutex?.close();
}
});
+ widget.popoverMutex?.listenOnPopoverChanged(() {
+ if (_focusNode.hasFocus) {
+ _focusNode.unfocus();
+ }
+ });
}
@override