@gitlab/ui 132.0.3 → 132.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { markRaw } from 'vue';
1
2
  import { GridStack } from 'gridstack';
2
3
  import { pickBy } from 'lodash-es';
3
4
  import { breakpoints } from '../../../../utils/breakpoints';
@@ -63,7 +64,6 @@ var script = {
63
64
  },
64
65
  data() {
65
66
  return {
66
- grid: undefined,
67
67
  gridPanels: []
68
68
  };
69
69
  },
@@ -165,7 +165,7 @@ var script = {
165
165
  },
166
166
  initGridStack() {
167
167
  // See https://github.com/gridstack/gridstack.js/tree/master/doc#grid-options
168
- this.grid = GridStack.init({
168
+ this.grid = markRaw(GridStack.init({
169
169
  // Uniform gap between panels
170
170
  margin: '8px',
171
171
  // CSS Selector for finding the drag handle element
@@ -185,7 +185,7 @@ var script = {
185
185
  float: true,
186
186
  // Toggles user-customization of grid layout
187
187
  staticGrid: this.isStaticGrid
188
- }, this.$refs.grid).load(this.gridConfig);
188
+ }, this.$refs.grid)).load(this.gridConfig);
189
189
 
190
190
  // Sync Vue components array with gridstack items
191
191
  this.initGridPanelSlots(this.grid.getGridItems());