Skip to content

Commit

Permalink
fix(card): 卡片重复渲染后resizeModel实例丢失 #236
Browse files Browse the repository at this point in the history
  • Loading branch information
big-camel committed Aug 27, 2022
1 parent abbc291 commit f071780
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/engine/src/card/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ abstract class CardEntry<T extends CardValue = CardValue>
}
private initResize() {
if (this.resize) {
if (!this.resizeModel) {
this.resizeModel = new Resize(this.editor, this);
}
const container =
typeof this.resize === 'function'
? this.resize()
Expand Down

0 comments on commit f071780

Please sign in to comment.