summaryrefslogtreecommitdiff
path: root/web/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/components')
-rw-r--r--web/src/components/grid/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/src/components/grid/index.ts b/web/src/components/grid/index.ts
index 5301afb..15f26a9 100644
--- a/web/src/components/grid/index.ts
+++ b/web/src/components/grid/index.ts
@@ -28,6 +28,11 @@ class NotiveGridElement extends HTMLElement {
}
window.addEventListener("ntv:selectionchange", () => this.draw());
+ window.addEventListener("ntv:grid:change", (event) => {
+ if (event.detail.gridId === this.gridId) {
+ this.draw();
+ }
+ });
this.canvasEl.addEventListener(
"mousedown",