MCPcopy Create free account
hub / github.com/angular/components / _canOpen

Method _canOpen

src/material/select/select.ts:1324–1326  ·  view source on GitHub ↗

Whether the panel is allowed to open.

()

Source from the content-addressed store, hash-verified

1322
1323 /** Whether the panel is allowed to open. */
1324 protected _canOpen(): boolean {
1325 return !this._panelOpen && !this.disabled && this.options?.length > 0 && !!this._overlayDir;
1326 }
1327
1328 /** Focuses the select element. */
1329 focus(options?: FocusOptions): void {

Callers 1

openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected