Browse Source

fix: disable flowyoverly focusNode

appflowy 2 years ago
parent
commit
6ded9aafd9

+ 3 - 1
frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart

@@ -338,7 +338,9 @@ class FlowyOverlayState extends State<FlowyOverlay> {
   Widget build(BuildContext context) {
     final overlays = _overlayList.map((item) {
       var widget = item.widget;
-      item.focusNode.requestFocus();
+
+      // requestFocus will cause the children weird focus behaviors.
+      // item.focusNode.requestFocus();
       if (item.delegate?.asBarrier() ?? false) {
         widget = Container(
           color: style.barrierColor,