mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
perf(editor): dispose input event handler for removed blocks (#11734)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user