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: sync mutation will not quit auto-fill mode (#3351)
YuHong8a7545a7fa69
diff --git a/packages/sheets-data-validation/src/index.ts b/packages/sheets-data-validation/src/index.tsindex 60e0f2aa1b..48218516e3 100644--- a/packages/sheets-data-validation/src/index.ts+++ b/packages/sheets-data-validation/src/index.ts@@ -56,4 +56,6 @@ export {HideDataValidationDropdown,} from './commands/operations/data-validation.operation';+export { LIST_DROPDOWN_KEY, DATE_DROPDOWN_KEY } from './views';+// #endregiondiff --git a/packages/sheets-ui/src/controllers/auto-fill.controller.ts b/packages/sheets-ui/src/controllers/auto-fill.controller.tsindex d62be42287..b9a8d44b65 100644--- a/packages/sheets-ui/src/controllers/auto-fill.controller.ts+++ b/packages/sheets-ui/src/controllers/auto-fill.controller.ts@@ -146,20 +146,19 @@ export class AutoFillController extends Disposable {MoveColsMutation.id,SetWorksheetColWidthMutation.id,SetWorksheetRowHeightMutation.id,+ SetRangeValuesMutation.id,];this.disposeWithMe(this._commandService.onCommandExecuted((command: ICommandInfo, options?: IExecutionOptions) => {const fromCollab = options?.fromCollab;- if (quitCommands.includes(command.id) && !fromCollab && (command.params as IMutationCommonParams).trigger !== AutoFillCommand.id) {+ const fromSync = options?.fromSync;+ if (quitCommands.includes(command.id)+ && !fromCollab+ && !fromSync+ && (command.params as IMutationCommonParams).trigger !== AutoFillCommand.id+ ) {this._quit();}-- // any edit operation will quit auto fill, except auto fill command- if (command.id === SetRangeValuesMutation.id) {- if ((command.params as ISetRangeValuesMutationParams).trigger !== AutoFillCommand.id) {- this._quit();- }- }if (command.id === RemoveSheetMutation.id) {if ((command.params as IRemoveSheetMutationParams).unitId === this._currentLocation?.unitId &&(command.params as IRemoveSheetMutationParams).subUnitId === this._currentLocation?.subUnitId) {