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: the aa menu disappear after clicking the inactive indent itemg (#4390)

Lucas.Xu6739af2be16c
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart
index bcf01d3930..120901324a 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart
@@ -70,7 +70,7 @@ class _MentionPageBlockState extends State<MentionPageBlock> {
if (view == null) {
return const SizedBox.shrink();
}
- updateSelection();
+ // updateSelection();
final iconSize = widget.textStyle?.fontSize ?? 16.0;
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 2),
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/util.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/util.dart
index 0cd6bc37c0..8b723cc917 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/util.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/util.dart
@@ -81,7 +81,7 @@ class MobileToolbarMenuItemWrapper extends StatelessWidget {
return GestureDetector(
behavior: HitTestBehavior.opaque,
- onTap: onTap,
+ onTap: enable == false ? null : onTap,
child: Stack(
children: [
Container(