(root: DocumentOrShadowRoot = window.document)
| 209 | } |
| 210 | |
| 211 | setSelectedGroup(root: DocumentOrShadowRoot = window.document) { |
| 212 | const htmlElement = window.document.querySelector("html"); |
| 213 | let element: Element | null = this.deepActive(root); |
| 214 | |
| 215 | while (element && element.getAttribute("data-sap-ui-fastnavgroup") !== "true" && element !== htmlElement) { |
| 216 | element = getParentElement(element); |
| 217 | } |
| 218 | |
| 219 | this.selectedGroup = element as HTMLElement; |
| 220 | } |
| 221 | |
| 222 | deepActive(root: DocumentOrShadowRoot): Element | null { |
| 223 | if (root?.activeElement?.shadowRoot?.activeElement) { |
no test coverage detected