()
| 88 | }); |
| 89 | |
| 90 | constructor() { |
| 91 | effect(() => this.menu()?.parent.set(this)); |
| 92 | effect(() => this._pattern.pendingFocusEffect()); |
| 93 | |
| 94 | // Automatically prevent form submission. |
| 95 | if (this.element.tagName === 'BUTTON' && !this.element.hasAttribute('type')) { |
| 96 | this.element.setAttribute('type', 'button'); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | /** Opens the menu focusing on the first menu item. */ |
| 101 | open() { |
nothing calls this directly
no test coverage detected