fix: cursor position is lost after tasklist node is created under safari

This commit is contained in:
yanmao 2021-12-25 22:50:30 +08:00
parent bfe96d7713
commit 9e30813f42
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ export default class<T extends TasklistOptions> extends ListPlugin<T> {
const range = change.range.get();
const activeBlocks = block.findBlocks(range);
if (activeBlocks) {
const selection = range.createSelection();
const selection = range.createSelection('tasklist-execute');
if (list.isSpecifiedType(activeBlocks, 'ul', 'checkbox')) {
list.unwrap(activeBlocks);
} else {