fix: Fixed issue where dragging a list item with a link in Super would only re-order the link
This commit is contained in:
@@ -74,7 +74,8 @@ function elementContainingEventLocation(
|
||||
|
||||
const children = Array.from(element.children)
|
||||
|
||||
const shouldRecurseIntoChildren = ['UL', 'OL', 'LI'].includes(element.tagName)
|
||||
const recursableTags = ['UL', 'OL', 'LI']
|
||||
const shouldRecurseIntoChildren = recursableTags.includes(element.tagName)
|
||||
|
||||
if (shouldRecurseIntoChildren) {
|
||||
for (const child of children) {
|
||||
@@ -82,6 +83,9 @@ function elementContainingEventLocation(
|
||||
if (isLeaf) {
|
||||
continue
|
||||
}
|
||||
if (!recursableTags.includes(child.tagName)) {
|
||||
continue
|
||||
}
|
||||
const childResult = elementContainingEventLocation(anchorElem, child as HTMLElement, eventLocation)
|
||||
|
||||
if (childResult.contains.result) {
|
||||
|
||||
Reference in New Issue
Block a user