Sets the default state for the menu.
()
| 199 | |
| 200 | /** Sets the default state for the menu. */ |
| 201 | setDefaultState() { |
| 202 | if (!this.inputs.parent()) { |
| 203 | const firstFocusable = this.listBehavior.navigationBehavior.peekFirst(); |
| 204 | if (firstFocusable) { |
| 205 | this.listBehavior.goto(firstFocusable, {focusElement: false}); |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | /** Sets the default active state of the menu before receiving interaction for the first time. */ |
| 211 | setDefaultStateEffect(): void { |
no test coverage detected