浏览代码

fix: disable flowyoverly focusNode

appflowy 2 年之前
父节点
当前提交
6ded9aafd9
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart

+ 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,