(e: Event)
| 727 | } |
| 728 | |
| 729 | async _onTabStripClick(e: Event) { |
| 730 | const tab = getTabInStrip(e.target as HTMLElement); |
| 731 | if (!tab || tab.realTabReference.disabled) { |
| 732 | return; |
| 733 | } |
| 734 | |
| 735 | e.stopPropagation(); |
| 736 | e.preventDefault(); |
| 737 | |
| 738 | if ((e.target as HTMLElement).hasAttribute("ui5-button")) { |
| 739 | this._onTabExpandButtonClick(e); |
| 740 | return; |
| 741 | } |
| 742 | |
| 743 | if (!tab.realTabReference.hasOwnContent && tab.realTabReference.tabs.length) { |
| 744 | await this._togglePopover(tab); |
| 745 | |
| 746 | return; |
| 747 | } |
| 748 | |
| 749 | this._onHeaderItemSelect(tab, e); |
| 750 | } |
| 751 | |
| 752 | async _onTabExpandButtonClick(e: Event) { |
| 753 | e.stopPropagation(); |
no test coverage detected