Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 9ae9501

Browse files
Scott HyndmanThomasBurleson
Scott Hyndman
authored andcommitted
fix(gridList): Animation reflow fix.
Now correctly decorates the element with the destroyed flag. Closes #1559. Closes #5042.
1 parent ed80df7 commit 9ae9501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/gridList/grid-list.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ function GridTileDirective($mdMedia) {
724724
scope.$on('$destroy', function() {
725725
// Mark the tile as destroyed so it is no longer considered in layout,
726726
// even if the DOM element sticks around (like during a leave animation)
727-
element.$$mdDestroyed = true;
727+
element[0].$$mdDestroyed = true;
728728
unwatchAttrs();
729729
gridCtrl.invalidateLayout();
730730
});

0 commit comments

Comments
 (0)