diff --git a/packages/web/src/javascripts/Components/SuperEditor/Plugins/CheckListPlugin.tsx b/packages/web/src/javascripts/Components/SuperEditor/Plugins/CheckListPlugin.tsx index 6b7f388fb2b..a0ddfe70487 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Plugins/CheckListPlugin.tsx +++ b/packages/web/src/javascripts/Components/SuperEditor/Plugins/CheckListPlugin.tsx @@ -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)