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