Skip to content

Commit

Permalink
fix: draggable icon is misplaced in ordered and unordered lists (stev…
Browse files Browse the repository at this point in the history
  • Loading branch information
p1yu5h committed Sep 6, 2023
1 parent b77c596 commit 6efaee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/ui/editor/extensions/drag-and-drop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function DragHandle(options: DragHandleOptions) {
y: event.clientY,
});

if (!(node instanceof Element)) {
if (!(node instanceof Element) || node.matches("ul, ol")) {
hideDragHandle();
return;
}
Expand Down

0 comments on commit 6efaee4

Please sign in to comment.