perf(editor): dispose input event handler for removed blocks (#11734)

This commit is contained in:
doodlewind
2025-04-16 09:05:47 +00:00
parent 212c13f843
commit b21864cf63

View File

@@ -86,7 +86,7 @@ export const getInlineRangeProvider: (
};
const inlineRange$: InlineRangeProvider['inlineRange$'] = signal(null);
editorHost.disposables.add(
element.disposables.add(
selectionManager.slots.changed.subscribe(selections => {
if (!isActiveInEditor(editorHost)) return;