revert tests & conditions (#3619)

This commit is contained in:
bbcodrin
2018-07-24 12:44:52 +03:00
committed by Eugenio Romano
parent f74f31741f
commit a55f09d527
2 changed files with 2 additions and 97 deletions

View File

@@ -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();
}
}