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: close emoji picker window on page switch

Moksh Mahajanf4a62209df51
diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_button.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_button.dart
index eeafd4ae98..8866b56d5b 100644
--- a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_button.dart
+++ b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_button.dart
@@ -52,6 +52,12 @@ class _EmojiStyleButtonState extends State<FlowyEmojiStyleButton> {
);
}
+ @override
+ void dispose() {
+ _entry.remove();
+ super.dispose();
+ }
+
// @override
// void didUpdateWidget(covariant FlowyEmojiStyleButton oldWidget) {
// super.didUpdateWidget(oldWidget);