fix: toggle heading issues (#6714)

* fix: pages overflow when selecting homepage

* fix: toggle heading issues

* Revert "fix: pages overflow when selecting homepage"

This reverts commit 156882a9a7.

* chore: optimize code logic

* fix: assertion in toggle list

* fix: make the turn into menu and color menu exclusive

* test: add toggle heading test
This commit is contained in:
Lucas 2024-11-05 10:52:22 +08:00 committed by GitHub
parent 54096b391f
commit 82effbf8e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 298 additions and 82 deletions

View file

@ -231,7 +231,6 @@ class _DocumentPageState extends State<DocumentPage>
final Path? path = _getPathFromAction(action, editorState);
if (path != null) {
debugPrint('jump to block: $path');
editorState.updateSelectionWithReason(
Selection.collapsed(Position(path: path)),
);