Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: disable flowyoverly focusNode

appflowy6ded9aafd90c
diff --git a/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart b/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart
index ad04dc25c2..25507b8f6d 100644
--- a/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart
+++ b/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,