Skip to content

Commit 50172bd

Browse files
fix(addon/components/paper-grid-list): adds mutation-observer to detect DOM elements being reordered.
1 parent cffb786 commit 50172bd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

addon/components/paper-grid-list.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
class={{@class}}
33
{{did-insert this.didInsertNode}}
44
{{did-update this.didUpdateNode @cols @gutter @rowHeight}}
5+
{{mutation-observer this.didUpdateNode}}
56
...attributes
67
>
78
{{yield (hash tile=(component 'paper-grid-tile' parent=this))}}

tests/integration/components/paper-grid-list-test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* eslint-disable prettier/prettier */
2-
import { module, test, skip } from 'qunit';
1+
import { module, test } from 'qunit';
32
import { setupRenderingTest } from 'ember-qunit';
43
import { render, find, waitUntil } from '@ember/test-helpers';
54
import hbs from 'htmlbars-inline-precompile';
@@ -335,7 +334,6 @@ module('Integration | Component | paper-grid-list', function (hooks) {
335334

336335
this.tiles.reverseObjects();
337336
await waitUntil(browserFramesRendered);
338-
await waitUntil(() => find('.TWO'));
339337

340338
assert.equal(tilePosition('.ONE'), 3);
341339
assert.equal(tilePosition('.TWO'), 2);

0 commit comments

Comments
 (0)