File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
projects/igniteui-angular/src/lib/grids/columns Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After
240240 this . children . forEach ( child => {
241241 child . parent = this ;
242242 } ) ;
243- if ( this . _collapsible && this . checkCollapsibleState ( ) ) {
243+ if ( this . collapsible ) {
244244 this . setExpandCollapseState ( ) ;
245245 }
246246 }
Original file line number Diff line number Diff line change @@ -1025,10 +1025,7 @@ export class IgxColumnComponent implements AfterContentInit {
10251025 set visibleWhenCollapsed ( value : boolean ) {
10261026 this . _visibleWhenCollapsed = value ;
10271027 this . visibleWhenCollapsedChange . emit ( this . _visibleWhenCollapsed ) ;
1028- if ( this . parent ) {
1029- if ( ! this . parent . collapsible ) { this . hidden = this . parent . hidden ; return ; }
1030- this . hidden = this . parent . expanded ? this . _visibleWhenCollapsed : ! this . _visibleWhenCollapsed ;
1031- }
1028+ if ( this . parent ) { this . parent . setExpandCollapseState ( ) ; }
10321029 if ( this . grid ) {
10331030 this . grid . notifyChanges ( true ) ;
10341031 }
@@ -1768,6 +1765,7 @@ export class IgxColumnComponent implements AfterContentInit {
17681765 */
17691766 protected setExpandCollapseState ( ) {
17701767 this . children . filter ( col => ( col . visibleWhenCollapsed !== undefined ) ) . forEach ( c => {
1768+ if ( ! this . collapsible ) { c . hidden = this . parent . hidden ; return ; }
17711769 c . hidden = this . _expanded ? c . visibleWhenCollapsed : ! c . visibleWhenCollapsed ;
17721770 } ) ;
17731771 }
You can’t perform that action at this time.
0 commit comments