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

Function isFocusTrap

packages/base/src/util/FocusableElements.ts:8–10  ·  view source on GitHub ↗
(el: HTMLElement)

Source from the content-addressed store, hash-verified

6type FocusableElementPromise = Promise<HTMLElement | null>;
7
8const isFocusTrap = (el: HTMLElement) => {
9 return el.hasAttribute("data-ui5-focus-trap");
10};
11
12const isScrollable = (el: HTMLElement) => {
13 const computedStyle = getComputedStyle(el);

Callers 1

findFocusableElementFunction · 0.85

Calls 1

hasAttributeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…