Skip to content

Commit 3b9942f

Browse files
committed
fix(select): fix outline form field label cannot be clicked (#401)
1 parent e8b6ad9 commit 3b9942f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/extensions/select/select.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ export class MtxSelect
498498
/** Implemented as part of MatFormFieldControl. */
499499
onContainerClick(event: MouseEvent) {
500500
const target = event.target as HTMLElement;
501-
if (/mat-mdc-form-field|mtx-select/g.test(target.parentElement?.classList[0] || '')) {
501+
if (!target.classList.contains('ng-arrow-wrapper')) {
502502
this.focus();
503503
this.open();
504504
}

0 commit comments

Comments
 (0)