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

Function forwardToFirst

packages/main/src/Popup.ts:480–488  ·  view source on GitHub ↗

* Focus trapping * @private

()

Source from the content-addressed store, hash-verified

478 * @private
479 */
480 async forwardToFirst() {
481 const firstFocusable = await getFirstFocusableElement(this);
482
483 if (firstFocusable) {
484 firstFocusable.focus();
485 } else {
486 this._root.focus();
487 }
488 }
489
490 /**
491 * Focus trapping

Callers

nothing calls this directly

Calls 2

getFirstFocusableElementFunction · 0.85
focusMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…