Skip to content

Commit f00309e

Browse files
committed
fix(grid-stack): allow custom class attribute
1 parent 81502a0 commit f00309e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

addon/components/grid-stack.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{{did-insert this.setup}}
66
{{did-update this.update @options}}
77
{{will-destroy this.willDestroyNode}}
8+
...attributes
89
>
910
{{yield this}}
1011
</div>

tests/integration/components/grid-stack-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ module('Integration | Component | grid stack', function (hooks) {
1414
assert.expect(2);
1515

1616
await render(hbs`
17-
<GridStack>
17+
<GridStack class="test-grid">
1818
<div class="grid-stack-item" gs-x="0" gs-y="0" gs-w="1" gs-h="1">
1919
<div class="grid-stack-item-content">My Widget</div>
2020
</div>
2121
</GridStack>
2222
`);
2323

2424
assert
25-
.dom('.grid-stack .grid-stack-item')
25+
.dom('.test-grid.grid-stack .grid-stack-item')
2626
.hasClass('ui-draggable', 'Dom elements with grid-stack-item class are initialized by gridstack');
2727

2828
assert
29-
.dom('.grid-stack .grid-stack-item')
29+
.dom('.test-grid.grid-stack .grid-stack-item')
3030
.hasClass('ui-resizable', 'Dom elements with grid-stack-item class are initialized by gridstack');
3131
});
3232

0 commit comments

Comments
 (0)