Returns the tab item associated with the given pointer event.
(e: PointerEvent)
| 296 | |
| 297 | /** Returns the tab item associated with the given pointer event. */ |
| 298 | private _getItem(e: PointerEvent) { |
| 299 | if (!(e.target instanceof HTMLElement)) { |
| 300 | return; |
| 301 | } |
| 302 | |
| 303 | const element = e.target.closest('[role="tab"]'); |
| 304 | return this.inputs.items().find(i => i.element() === element); |
| 305 | } |
| 306 | } |