Sets the default state for the menu.
()
| 212 | |
| 213 | /** Sets the default state for the menu. */ |
| 214 | setDefaultState() { |
| 215 | if (!this.inputs.parent()) { |
| 216 | const firstFocusable = this.listBehavior.navigationBehavior.peekFirst(); |
| 217 | if (firstFocusable) { |
| 218 | this.listBehavior.goto(firstFocusable, {focusElement: false}); |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | /** Sets the default active state of the menu before receiving interaction for the first time. */ |
| 224 | setDefaultStateEffect(): void { |
no test coverage detected