Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
potatowagon committed May 29, 2024
1 parent a55585e commit 0b52e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lexical-list/src/LexicalListNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ function isDomChecklist(domNode: Node) {
return true;
}
// if children are checklist items, the node is a checklist ul. Applicable for googledoc checklist pasting.
for (const n of domNode.childNodes) {
if (isHTMLElement(n) && n.hasAttribute('aria-checked')) {
for (const child of domNode.childNodes) {
if (isHTMLElement(child) && child.hasAttribute('aria-checked')) {
return true;
}
}
Expand Down

0 comments on commit 0b52e13

Please sign in to comment.