mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: unable to redo/undo in lists and data loss issues (#4739)
This commit is contained in:
parent
dfe3b0a929
commit
93664167e0
@ -18,9 +18,11 @@ CharacterShortcutEvent formatGreaterToToggleList = CharacterShortcutEvent(
|
|||||||
editorState,
|
editorState,
|
||||||
(node) => node.type != ToggleListBlockKeys.type,
|
(node) => node.type != ToggleListBlockKeys.type,
|
||||||
(_, text, __) => text == _greater,
|
(_, text, __) => text == _greater,
|
||||||
(_, node, delta) => toggleListBlockNode(
|
(_, node, delta) => [
|
||||||
|
toggleListBlockNode(
|
||||||
delta: delta.compose(Delta()..delete(_greater.length)),
|
delta: delta.compose(Delta()..delete(_greater.length)),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -53,8 +53,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "0a84917"
|
ref: "9d90053"
|
||||||
resolved-ref: "0a84917e71cc44c9151f2f59aba72bcdacc66e57"
|
resolved-ref: "9d9005366ba8383e93029c4f2f006f9ff8d1cb08"
|
||||||
url: "https://github.com/AppFlowy-IO/appflowy-editor.git"
|
url: "https://github.com/AppFlowy-IO/appflowy-editor.git"
|
||||||
source: git
|
source: git
|
||||||
version: "2.3.2"
|
version: "2.3.2"
|
||||||
|
@ -167,7 +167,7 @@ dependency_overrides:
|
|||||||
appflowy_editor:
|
appflowy_editor:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/AppFlowy-IO/appflowy-editor.git
|
url: https://github.com/AppFlowy-IO/appflowy-editor.git
|
||||||
ref: "0a84917"
|
ref: "9d90053"
|
||||||
|
|
||||||
sheet:
|
sheet:
|
||||||
git:
|
git:
|
||||||
|
Loading…
Reference in New Issue
Block a user