Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: task item drag/drop not working on mobile

thecodrr9f1d34c799ea
diff --git a/packages/editor/dist/extensions/taskitem/component.js b/packages/editor/dist/extensions/taskitem/component.js
index edb3ff268..7e544bd01 100644
--- a/packages/editor/dist/extensions/taskitem/component.js
+++ b/packages/editor/dist/extensions/taskitem/component.js
@@ -46,7 +46,7 @@ export function TaskItemComponent(props) {
":hover > .dragHandle": {
opacity: 1,
},
- } }, { children: [_jsx(Icon, { className: "dragHandle", draggable: "true", contentEditable: false, "data-drag-handle": true, path: Icons.dragHandle, sx: {
+ } }, { children: [_jsx(Icon, { className: "dragHandle", draggable: "true", "data-drag-handle": true, path: Icons.dragHandle, sx: {
opacity: [1, 1, 0],
alignSelf: "start",
mr: 2,
diff --git a/packages/editor/src/extensions/task-item/component.tsx b/packages/editor/src/extensions/task-item/component.tsx
index bccd9297c..4b36682ed 100644
--- a/packages/editor/src/extensions/task-item/component.tsx
+++ b/packages/editor/src/extensions/task-item/component.tsx
@@ -43,7 +43,7 @@ export function TaskItemComponent(
<Icon
className="dragHandle"
draggable="true"
- contentEditable={false}
+ //contentEditable={false}
data-drag-handle
path={Icons.dragHandle}
sx={{