Closes the select's panel.
()
| 149 | |
| 150 | /** Closes the select's panel. */ |
| 151 | async close(): Promise<void> { |
| 152 | if (await this.isOpen()) { |
| 153 | // This is the most consistent way that works both in both single and multi-select modes, |
| 154 | // but it assumes that only one overlay is open at a time. We should be able to make it |
| 155 | // a bit more precise after #16645 where we can dispatch an ESCAPE press to the host instead. |
| 156 | return (await this._backdrop()).click(); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | /** Gets the selector that should be used to find this select's panel. */ |
| 161 | private async _getPanelSelector(): Promise<string> { |
no test coverage detected