fix: juggling back and forth of drag handles in ordered and unordered lists

This commit is contained in:
Palanikannan1437 2024-03-14 13:16:59 +05:30
parent 52b2fbefe1
commit 8b297b2bda

View File

@ -196,7 +196,7 @@ function DragHandle(options: DragHandleOptions) {
y: event.clientY,
});
if (!(node instanceof Element)) {
if (!(node instanceof Element) || node.matches("ul, ol")) {
hideDragHandle();
return;
}