Skip to content

Commit d8e9f6d

Browse files
committed
main - ed45f44 docs(material/table): Simultaneous Row Expansion Issue in MatTab with Nested MatTable Component (#27659)
1 parent f1086ad commit d8e9f6d

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

docs-content/examples-highlighted/material/table/table-expandable-rows/table-expandable-rows-example-ts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<span class="hljs-attr">templateUrl</span>: <span class="hljs-string">&#x27;table-expandable-rows-example.html&#x27;</span>,
1414
<span class="hljs-attr">animations</span>: [
1515
trigger(<span class="hljs-string">&#x27;detailExpand&#x27;</span>, [
16-
state(<span class="hljs-string">&#x27;collapsed&#x27;</span>, style({<span class="hljs-attr">height</span>: <span class="hljs-string">&#x27;0px&#x27;</span>, <span class="hljs-attr">minHeight</span>: <span class="hljs-string">&#x27;0&#x27;</span>})),
16+
state(<span class="hljs-string">&#x27;collapsed,void&#x27;</span>, style({<span class="hljs-attr">height</span>: <span class="hljs-string">&#x27;0px&#x27;</span>, <span class="hljs-attr">minHeight</span>: <span class="hljs-string">&#x27;0&#x27;</span>})),
1717
state(<span class="hljs-string">&#x27;expanded&#x27;</span>, style({<span class="hljs-attr">height</span>: <span class="hljs-string">&#x27;*&#x27;</span>})),
1818
transition(<span class="hljs-string">&#x27;expanded &lt;=&gt; collapsed&#x27;</span>, animate(<span class="hljs-string">&#x27;225ms cubic-bezier(0.4, 0.0, 0.2, 1)&#x27;</span>)),
1919
]),

docs-content/examples-source/material/table/table-expandable-rows/table-expandable-rows-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {MatTableModule} from '@angular/material/table';
1313
templateUrl: 'table-expandable-rows-example.html',
1414
animations: [
1515
trigger('detailExpand', [
16-
state('collapsed', style({height: '0px', minHeight: '0'})),
16+
state('collapsed,void', style({height: '0px', minHeight: '0'})),
1717
state('expanded', style({height: '*'})),
1818
transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
1919
]),

0 commit comments

Comments
 (0)