mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
revert tests & conditions (#3619)
This commit is contained in:
@@ -78,7 +78,7 @@ export class AccordionGroupComponent implements AfterViewInit {
|
||||
constructor() { }
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.hasContent = this.contentWrapper ? this.contentWrapper.nativeElement && this.contentWrapper.nativeElement.children.length > 0 : false;
|
||||
this.hasContent = this.contentWrapper.nativeElement && this.contentWrapper.nativeElement.children.length > 0;
|
||||
}
|
||||
|
||||
hasHeadingIcon() {
|
||||
@@ -90,7 +90,7 @@ export class AccordionGroupComponent implements AfterViewInit {
|
||||
}
|
||||
|
||||
isExpandable() {
|
||||
if (this.hasContent && this.isSelected) {
|
||||
if (!this.hasContent || !this.isOpen) {
|
||||
this.expandPanel();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user