MCPcopy
hub / github.com/UI5/webcomponents / focus

Function focus

packages/main/src/TableRowBase.ts:81–86  ·  view source on GitHub ↗
(focusOptions?: FocusOptions | undefined)

Source from the content-addressed store, hash-verified

79 }
80
81 async focus(focusOptions?: FocusOptions | undefined): Promise<void> {
82 this.setAttribute("tabindex", "-1");
83 HTMLElement.prototype.focus.call(this, focusOptions);
84 this._handleCustomFocusOutline();
85 return Promise.resolve();
86 }
87
88 _handleCustomFocusOutline() {
89 if (this._renderDummyCell && !this._hasPopin && document.activeElement === this) {

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected