fix: cursor position is lost after tasklist node is created under safari
This commit is contained in:
parent
bfe96d7713
commit
9e30813f42
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue