Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: fix memory leaking in active cell
Wenzhao Hu761a372ca9db
diff --git a/packages/sheets-ui/src/services/hover-manager.service.ts b/packages/sheets-ui/src/services/hover-manager.service.tsindex a7bc713907..bbd97d8ff0 100644--- a/packages/sheets-ui/src/services/hover-manager.service.ts+++ b/packages/sheets-ui/src/services/hover-manager.service.ts@@ -56,7 +56,10 @@ export class HoverManagerService {const { offsetX, offsetY } = this._lastPosition;const workbook = this._univerInstanceService.getCurrentUniverSheetInstance();- if (!workbook) return;+ if (!workbook) {+ this._currentCell$.next(null);+ return;+ }const worksheet = workbook.getActiveSheet();const skeletonParam = this._sheetSkeletonManagerService.getCurrent();