|
@@ -180,14 +180,16 @@ class OutlineItemWidget extends StatelessWidget {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- void updateBlockSelection(BuildContext context) {
|
|
|
+ void updateBlockSelection(BuildContext context) async {
|
|
|
final editorState = context.read<EditorState>();
|
|
|
editorState.selectionType = SelectionType.block;
|
|
|
editorState.selection = Selection.collapse(
|
|
|
node.path,
|
|
|
node.delta?.length ?? 0,
|
|
|
);
|
|
|
- editorState.selectionType = null;
|
|
|
+ WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
|
|
+ editorState.selectionType = null;
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|