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