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: ts-error (#1858)
zhangwb8007cb9e7f0
diff --git a/packages/sheets-data-validation/src/services/dropdown-manager.service.ts b/packages/sheets-data-validation/src/services/dropdown-manager.service.tsindex 3b0e000c8b..9fe047b519 100644--- a/packages/sheets-data-validation/src/services/dropdown-manager.service.ts+++ b/packages/sheets-data-validation/src/services/dropdown-manager.service.ts@@ -87,7 +87,7 @@ export class DataValidationDropdownManagerService extends Disposable {this._activeDropdown$.next(this._activeDropdown);const disposableCollection = new DisposableCollection();const currentRender = this._renderManagerService.getRenderById(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);- disposableCollection.add(this._canvasPopupManagerService.attachPopupToCell(+ const attachDispose = this._canvasPopupManagerService.attachPopupToCell(row,col,{@@ -98,7 +98,8 @@ export class DataValidationDropdownManagerService extends Disposable {offset: [0, 3],excludeOutside: [currentRender?.engine.getCanvasElement()].filter(Boolean) as HTMLElement[],}- ));+ );+ attachDispose && disposableCollection.add(attachDispose);disposableCollection.add({dispose: () => {