How to hide Mat Multi Select Dropdown on Clicking the custom Button

625 views Asked by At

I am using Mat MultiSelect Dropdown When I am selecting the CheckBoxes enter image description here

When I am clicking on Apply it stays shown until I click on somewhere else in the window. How can I hide this dropdown on Click

1

There are 1 answers

2
Abhishek Upadhyay On
<mat-form-field appearance="fill" [ngClass]="{ 'hidden': "condition"}">
  <mat-label>Anything </mat-label>

.CSS

.hidden {
  display: none;
}