Skip to content

Commit 3a59703

Browse files
authored
fix: ensure the container in html view (#3196)
1 parent 45218c3 commit 3a59703

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/x6/src/shape/html.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export namespace HTML {
3636
}
3737

3838
protected renderHTMLComponent() {
39-
const container = this.selectors.foContent as Element
39+
const container =
40+
this.selectors && (this.selectors.foContent as HTMLDivElement)
4041
if (container) {
4142
Dom.empty(container)
4243
const content = shapeMaps[this.cell.shape]

0 commit comments

Comments
 (0)