Skip to content

Commit 561f1ab

Browse files
authored
Fix issue 529 - Grid responsive does not work in vue3 (jbaysolutions#530)
1 parent 3303f91 commit 561f1ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/GridLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
},
250250
responsive() {
251251
if (!this.responsive) {
252-
this.$emit('layout-updated', this.originalLayout);
252+
this.$emit('update:layout', this.originalLayout);
253253
this.eventBus.emit("setColNum", this.colNum);
254254
}
255255
this.onWindowResize();
@@ -432,7 +432,7 @@
432432
}
433433
434434
// new prop sync
435-
this.$emit('layout-updated', layout);
435+
this.$emit('update:layout', layout);
436436
437437
this.lastBreakpoint = newBreakpoint;
438438
this.eventBus.emit("setColNum", getColsFromBreakpoint(newBreakpoint, this.cols));

0 commit comments

Comments
 (0)