fix: Fixed issue with embedded note links getting deselected after first click
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user