Returns the tab item associated with the given event.
(e: Event)
| 301 | |
| 302 | /** Returns the tab item associated with the given event. */ |
| 303 | private _getItem(e: Event) { |
| 304 | const target = _getEventTarget(e); |
| 305 | if (!(target instanceof Element)) { |
| 306 | return; |
| 307 | } |
| 308 | |
| 309 | const element = target.closest('[role="tab"]'); |
| 310 | return element ? this.inputs.items().find(i => i.element() === element) : undefined; |
| 311 | } |
| 312 | } |
no test coverage detected