I am trying to make an expansion panel expand only when clinking the arrow, but when I try to compile it, this function
private _isExpansionIndicator(target: EventTarget): boolean {
const expansionIndicatorClass = 'mat-expansion-indicator';
return (target.classList && target.classList.contains(expansionIndicatorClass) );
}
returns the following error:
"Property 'classList' does not exist on type 'EventTarget'"
Any clues how do I get past this error or do you know any other workaround to acheive the same functionality?
I got it working on stackblitz with no errors... https://stackblitz.com/edit/basic-material-e6sh1r