From 111989c96c28e2049a0a7cf812894a68aa326f05 Mon Sep 17 00:00:00 2001 From: Mathias Mogensen Date: Wed, 31 Jul 2024 02:55:22 +0200 Subject: [PATCH] fix: popover onOpen not triggered by manual show --- .../editor_plugins/file/file_block_component.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart index 704f9ddcbe..6fe0710dfe 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart @@ -186,7 +186,10 @@ class FileBlockComponentState extends State behavior: HitTestBehavior.translucent, onTap: url != null && url.isNotEmpty ? () => afLaunchUrlString(url) - : controller.show, + : () { + controller.show(); + dropManagerState.add(FileBlockKeys.type); + }, child: DecoratedBox( decoration: BoxDecoration( color: isHovering