Handles click events on the trigger.
(event: MouseEvent)
| 195 | |
| 196 | /** Handles click events on the trigger. */ |
| 197 | _handleClick(event: MouseEvent): void { |
| 198 | if (this.triggersSubmenu()) { |
| 199 | // Stop event propagation to avoid closing the parent menu. |
| 200 | event.stopPropagation(); |
| 201 | this.openMenu(); |
| 202 | } else { |
| 203 | this.toggleMenu(); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | /** Handles the cases where the user hovers over the trigger. */ |
| 208 | private _handleHover() { |
nothing calls this directly
no test coverage detected