(container: HTMLElement, startFromContainer?: boolean)
| 25 | }; |
| 26 | |
| 27 | const getLastFocusableElement = async (container: HTMLElement, startFromContainer?: boolean): FocusableElementPromise => { |
| 28 | if (!container || isElementHidden(container)) { |
| 29 | return null; |
| 30 | } |
| 31 | |
| 32 | return findFocusableElement(container, false, startFromContainer); |
| 33 | }; |
| 34 | |
| 35 | const isElemFocusable = (el: HTMLElement) => { |
| 36 | return el.hasAttribute("data-ui5-focus-redirect") || !isElementHidden(el); |
no test coverage detected
searching dependent graphs…