MCPcopy Create free account
hub / github.com/UI5/webcomponents / getLastFocusableElement

Function getLastFocusableElement

packages/base/src/util/FocusableElements.ts:27–33  ·  view source on GitHub ↗
(container: HTMLElement, startFromContainer?: boolean)

Source from the content-addressed store, hash-verified

25};
26
27const 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
35const isElemFocusable = (el: HTMLElement) => {
36 return el.hasAttribute("data-ui5-focus-redirect") || !isElementHidden(el);

Callers 1

forwardToLastFunction · 0.85

Calls 2

isElementHiddenFunction · 0.85
findFocusableElementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…