mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
fix: TaskList cannot be added on mobile
This commit is contained in:
2
packages/editor/dist/toolbar/tools/block.js
vendored
2
packages/editor/dist/toolbar/tools/block.js
vendored
@@ -243,5 +243,5 @@ var tasklist = function (editor) { return ({
|
||||
title: "Task list",
|
||||
icon: "checkbox",
|
||||
isChecked: editor === null || editor === void 0 ? void 0 : editor.isActive("taskList"),
|
||||
onClick: function () { return editor === null || editor === void 0 ? void 0 : editor.chain().toggleTaskList().run(); },
|
||||
onClick: function () { return editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleTaskList().run(); },
|
||||
}); };
|
||||
|
||||
@@ -305,5 +305,5 @@ const tasklist = (editor: Editor | null): MenuItem => ({
|
||||
title: "Task list",
|
||||
icon: "checkbox",
|
||||
isChecked: editor?.isActive("taskList"),
|
||||
onClick: () => editor?.chain().toggleTaskList().run(),
|
||||
onClick: () => editor?.chain().focus().toggleTaskList().run(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user