Selaa lähdekoodia

feat: unfocus CreateOptionTextField when popover state changes

Cyrine-benabid 2 vuotta sitten
vanhempi
commit
16a8dbc6ce

+ 5 - 0
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?.close();
       }
       }
     });
     });
+    widget.popoverMutex?.listenOnPopoverChanged(() {
+      if (_focusNode.hasFocus) {
+        _focusNode.unfocus();
+      }
+    });
   }
   }
 
 
   @override
   @override