Skip to content

Commit 83c5bcf

Browse files
committed
fix(select): open method triggered twice on click
Fixes the `open` method being triggered both by a click handler on the select trigger and the `onContainerClick` from the `MatFormField` integration.
1 parent e7533a5 commit 83c5bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/select/select.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ export class MatSelect extends _MatSelectMixinBase implements AfterContentInit,
545545

546546
/** Opens the overlay panel. */
547547
open(): void {
548-
if (this.disabled || !this.options || !this.options.length) {
548+
if (this.disabled || !this.options || !this.options.length || this._panelOpen) {
549549
return;
550550
}
551551

0 commit comments

Comments
 (0)