Assume the following template:
<div [style.height.px]="contentHeight"></div>
When contentHeight is 100:
<div style="height: 100px"></div>
When contentHeight is 0:
<div style="height: 0px"></div>
However, when contentHeight transitions from a non-null value to null/undefined...
Expected:
Actual:
<!-- Either 0 or whatever the previous value was -->
<div style="height: 0px"></div>
@vsavkin Is this possibly CD related?
Workaround is to use [style.height] and manage your own String.