Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
Mat Accordion/ Mat Panel collapse on Outside click event

I have a feature where in I have 2 mat-expansion-panel inside a mat-accordion. Currently I am able to expand and collapse the mat-expansion-panel properly. (One panel expanded at a time.)

<mat-accordion>
<mat-expansion-panel [(expanded)]="isExpanded">
...
</mat-expansion-panel>
<mat-expansion-panel [(expanded)]="isExpanded">
...
</mat-expansion-panel>
</mat-accordion>

enter image description here

enter image description here

However I wanted to collapse the mat-expansion-panel when the user clicks outside the mat-expansion-panel i.e. On the table (different component), button(different component) or even expanded mat-accordion.

Is the a good way of implementing it without impacting other features?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!