From b59ae5ae689d50e4e06c66ca2f108afe2cec3389 Mon Sep 17 00:00:00 2001 From: Scott Hyndman Date: Tue, 6 Oct 2015 15:54:22 -0700 Subject: [PATCH] fix(gridList): Animation reflow fix. Now correctly decorates the element with the destroyed flag. Closes #1559. --- src/components/gridList/grid-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/gridList/grid-list.js b/src/components/gridList/grid-list.js index 9bde240fcc..fe29c19b7c 100644 --- a/src/components/gridList/grid-list.js +++ b/src/components/gridList/grid-list.js @@ -724,7 +724,7 @@ function GridTileDirective($mdMedia) { scope.$on('$destroy', function() { // Mark the tile as destroyed so it is no longer considered in layout, // even if the DOM element sticks around (like during a leave animation) - element.$$mdDestroyed = true; + element[0].$$mdDestroyed = true; unwatchAttrs(); gridCtrl.invalidateLayout(); });