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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
editor.getRootElement()?.focus()
|
|
||||||
|
|
||||||
const parentNode = target.parentNode
|
const parentNode = target.parentNode
|
||||||
// @ts-expect-error internal field
|
// @ts-expect-error internal field
|
||||||
if (!parentNode || parentNode.__lexicalListType !== 'check') {
|
if (!parentNode || parentNode.__lexicalListType !== 'check') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editor.getRootElement()?.focus()
|
||||||
|
|
||||||
const rect = target.getBoundingClientRect()
|
const rect = target.getBoundingClientRect()
|
||||||
|
|
||||||
const listItemElementStyles = getComputedStyle(target)
|
const listItemElementStyles = getComputedStyle(target)
|
||||||
|
|||||||
Reference in New Issue
Block a user