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

Function getFirstFocusableElement

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

Source from the content-addressed store, hash-verified

17};
18
19const getFirstFocusableElement = async (container: HTMLElement, startFromContainer?: boolean): FocusableElementPromise => {
20 if (!container || isElementHidden(container)) {
21 return null;
22 }
23
24 return findFocusableElement(container, true, startFromContainer);
25};
26
27const getLastFocusableElement = async (container: HTMLElement, startFromContainer?: boolean): FocusableElementPromise => {
28 if (!container || isElementHidden(container)) {

Callers 11

_handleF7KeyMethod · 0.85
forwardToFirstFunction · 0.85
applyFocusFunction · 0.85
Breadcrumbs.cy.tsxFile · 0.85
groupElementToFocusMethod · 0.85
_onkeydownMethod · 0.85
_onkeydownMethod · 0.85
_onkeydownMethod · 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…