Skip to content

Commit

Permalink
fix: Fixed issue with embedded note links getting deselected after fi…
Browse files Browse the repository at this point in the history
…rst click
  • Loading branch information
amanharwara committed Sep 14, 2024
1 parent f2b5ab7 commit 48b558b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ export function CheckListPlugin(): null {
return
}

editor.getRootElement()?.focus()

const parentNode = target.parentNode
// @ts-expect-error internal field
if (!parentNode || parentNode.__lexicalListType !== 'check') {
return
}

editor.getRootElement()?.focus()

const rect = target.getBoundingClientRect()

const listItemElementStyles = getComputedStyle(target)
Expand Down

0 comments on commit 48b558b

Please sign in to comment.