Skip to content

Commit 16a8dbc

Browse files
feat: unfocus CreateOptionTextField when popover state changes
1 parent 1a53a0e commit 16a8dbc

File tree

1 file changed

+5
-0
lines changed
  • frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option

1 file changed

+5
-0
lines changed

frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/type_option/select_option.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ class __CreateOptionTextFieldState extends State<_CreateOptionTextField> {
289289
widget.popoverMutex?.close();
290290
}
291291
});
292+
widget.popoverMutex?.listenOnPopoverChanged(() {
293+
if (_focusNode.hasFocus) {
294+
_focusNode.unfocus();
295+
}
296+
});
292297
}
293298

294299
@override

0 commit comments

Comments
 (0)