Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cdk-experimental/column-resize): Ensure resizable entity is not d…
…estroyed before applying min/max update (#24007) The styleSchedule.scheduleEnd() function will sometimes call the provided callback after the nativeElement has been destroyed. The width of this nativeElement is used in the _apply(Min/Max)WidthPx functions to calculate a width diff. If the nativeElement has already been destroyed, the "current" width of the element is 0 so the column effectively doubles in width even though it technically didn't change. This width change is propagated up to the table which increases its size to account for the increased column width. If the element has been destroyed, we can just ignore any resize logic pertaining to that old column since it should no longer affect the table's width. A newer version of that entity should make the change if necessary.
- Loading branch information