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

Function forwardToLast

packages/main/src/Popup.ts:494–502  ·  view source on GitHub ↗

* Focus trapping * @private

()

Source from the content-addressed store, hash-verified

492 * @private
493 */
494 async forwardToLast() {
495 const lastFocusable = await getLastFocusableElement(this);
496
497 if (lastFocusable) {
498 lastFocusable.focus();
499 } else {
500 this._root.focus();
501 }
502 }
503
504 /**
505 * Use this method to focus the element denoted by "initialFocus", if provided,

Callers

nothing calls this directly

Calls 2

getLastFocusableElementFunction · 0.85
focusMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…