()
| 406 | } |
| 407 | |
| 408 | onAfterRendering() { |
| 409 | if (!this.items.length) { |
| 410 | return; |
| 411 | } |
| 412 | |
| 413 | this._setItemsForStrip(); |
| 414 | |
| 415 | if (!this.shadowRoot!.contains(document.activeElement)) { |
| 416 | const focusStart = this._getRootTab(this._selectedTab); |
| 417 | |
| 418 | if (focusStart) { |
| 419 | this._itemNavigation.setCurrentItem(focusStart); |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | if (this.responsivePopover?.open) { |
| 424 | const popoverItems = this._getPopoverItemsFor(this._getPopoverOwner(this.responsivePopover.opener as HTMLElement)); |
| 425 | |
| 426 | if (popoverItems.length) { |
| 427 | this._setPopoverItems(popoverItems); |
| 428 | } else { |
| 429 | this._closePopover(); |
| 430 | } |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | onEnterDOM() { |
| 435 | ResizeHandler.register(this._getHeader(), this._handleResizeBound); |
nothing calls this directly
no test coverage detected