* Set the tab index to 0 if not disabled and it's a focus event, or a mouse enter if this element * is not in a menu bar.
(event?: MouseEvent)
| 172 | * is not in a menu bar. |
| 173 | */ |
| 174 | _setTabIndex(event?: MouseEvent) { |
| 175 | if (this.disabled) { |
| 176 | return; |
| 177 | } |
| 178 | |
| 179 | // don't set the tabindex if there are no open sibling or parent menus |
| 180 | if (!event || !this._menuStack.isEmpty()) { |
| 181 | this._tabindex = 0; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | /** Handles click events on the item. */ |
| 186 | protected _handleClick(event: MouseEvent) { |