GridStack load issue

To begin, uncomment line 9 in the JavaScript editor. Your page will crash, this is a gridstack issue.

by Alain Dumesny

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/gridstack.js/6.0.2/gridstack-all.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/gridstack.js/6.0.2/gridstack.min.css">
<!-- This all comes from https://github.com/gridstack/gridstack.js#basic-usage -->
<div class="grid-stack"></div>

CSS

.grid-stack { background: #FAFAD2; }
.grid-stack-item-content { background-color: #18BC9C; }

JavaScript

const data = [
  {x: 0, y: 0, w: 2, h: 2},
  {x: 2, y: 3, w: 3, content: 'item 2'},
  {x: 1, y: 3}
];

let grid = GridStack.init();

grid.load(data);