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: unable to redo/undo in lists and data loss issues (#4739)

Lucas.Xu93664167e045
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart
index 6857e830d6..a81677d97c 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart
@@ -18,9 +18,11 @@ CharacterShortcutEvent formatGreaterToToggleList = CharacterShortcutEvent(
editorState,
(node) => node.type != ToggleListBlockKeys.type,
(_, text, __) => text == _greater,
- (_, node, delta) => toggleListBlockNode(
- delta: delta.compose(Delta()..delete(_greater.length)),
- ),
+ (_, node, delta) => [
+ toggleListBlockNode(
+ delta: delta.compose(Delta()..delete(_greater.length)),
+ ),
+ ],
),
);
diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lock
index 52c265cb46..f9f7c7dbf4 100644
--- a/frontend/appflowy_flutter/pubspec.lock
+++ b/frontend/appflowy_flutter/pubspec.lock
@@ -53,8 +53,8 @@ packages:
dependency: "direct main"
description:
path: "."
- ref: "0a84917"
- resolved-ref: "0a84917e71cc44c9151f2f59aba72bcdacc66e57"
+ ref: "9d90053"
+ resolved-ref: "9d9005366ba8383e93029c4f2f006f9ff8d1cb08"
url: "https://github.com/AppFlowy-IO/appflowy-editor.git"
source: git
version: "2.3.2"
diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yaml
index f57803a35a..6a388c9709 100644
--- a/frontend/appflowy_flutter/pubspec.yaml
+++ b/frontend/appflowy_flutter/pubspec.yaml
@@ -167,7 +167,7 @@ dependency_overrides:
appflowy_editor:
git:
url: https://github.com/AppFlowy-IO/appflowy-editor.git
- ref: "0a84917"
+ ref: "9d90053"
sheet:
git: