Skip to content

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.

fix: selection type did not update when set type to normal(0) (#3317)

lumix2909cf80a7e6
diff --git a/packages/sheets-ui/src/services/selection/selection-render-model.ts b/packages/sheets-ui/src/services/selection/selection-render-model.ts
index b6b0be8331..9ec8c3cf7f 100644
--- a/packages/sheets-ui/src/services/selection/selection-render-model.ts
+++ b/packages/sheets-ui/src/services/selection/selection-render-model.ts
@@ -148,7 +148,8 @@ export class SelectionRenderModel implements IRangeWithCoord {
this._endX = endX;
this._endY = endY;
- if (rangeType) {
+ // !! rangeType various from 0 ~ 3
+ if (rangeType !== undefined) {
this._rangeType = rangeType;
}
this.setCurrentCell(currentCell);