File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,16 @@ export class SelectHarness extends Harness<Select> {
57
57
}
58
58
( await this . getItems ( ) [ index ] . getInteractiveElement ( ) ) . click ( ) ;
59
59
}
60
+
61
+ get isOpen ( ) {
62
+ const menu = this . element . renderRoot . querySelector ( 'md-menu' ) ! ;
63
+ if ( ! menu ) {
64
+ throw new Error (
65
+ 'Internal md-menu is not found. md-select may not have finished rendering when isOpen has been checked' ,
66
+ ) ;
67
+ }
68
+ return menu . open ;
69
+ }
60
70
}
61
71
62
72
// Private class (not exported)
Original file line number Diff line number Diff line change @@ -575,7 +575,7 @@ export abstract class Select extends selectBaseClass {
575
575
}
576
576
577
577
private handleClick ( ) {
578
- this . open = true ;
578
+ this . open = ! this . open ;
579
579
}
580
580
581
581
private handleFocus ( ) {
You can’t perform that action at this time.
0 commit comments