Skip to content

Commit 506665c

Browse files
authored
Merge pull request #2556 from adumesny/master
make sure 'new GridStack(el)' set el.gridstack=this
2 parents 03ce8fa + 2b4d14a commit 506665c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gridstack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export class GridStack {
267267
* @param opts
268268
*/
269269
public constructor(el: GridHTMLElement, opts: GridStackOptions = {}) {
270+
el.gridstack = this;
270271
this.el = el; // exposed HTML element to the user
271272
opts = opts || {}; // handles null/undefined/0
272273

0 commit comments

Comments
 (0)