Skip to content

Commit 6f2e8d8

Browse files
Linzsongroymondchen
authored andcommitted
fix(stage): 修复隐藏标尺后无法显示问题
1 parent 637a5bb commit 6f2e8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/stage/src/Rule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export default class Rule extends EventEmitter {
124124
this.hGuides?.off('changeGuides', this.hGuidesChangeGuidesHandler);
125125
this.vGuides?.off('changeGuides', this.vGuidesChangeGuidesHandler);
126126
this.containerResizeObserver?.disconnect();
127+
this.container = undefined;
127128
this.removeAllListeners();
128129
}
129130

@@ -137,7 +138,6 @@ export default class Rule extends EventEmitter {
137138

138139
this.hGuides = undefined;
139140
this.vGuides = undefined;
140-
this.container = undefined;
141141
}
142142

143143
private getGuidesStyle = (type: GuidesType) => ({

0 commit comments

Comments
 (0)