From 16a8dbc6cef0569f420935ef5c191d7f39560c69 Mon Sep 17 00:00:00 2001 From: Cyrine-benabid Date: Sun, 30 Oct 2022 18:27:12 +0100 Subject: [PATCH] feat: unfocus CreateOptionTextField when popover state changes --- .../widgets/header/type_option/select_option.dart | 5 +++++ 1 file changed, 5 insertions(+) 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