We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a2aa4 commit 86062aeCopy full SHA for 86062ae
packages/uui-menu-item/lib/uui-menu-item.element.ts
@@ -113,6 +113,15 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
113
demandCustomElement(this, 'uui-loader-bar');
114
}
115
116
+ async focus() {
117
+ await this.updateComplete;
118
+ this.shadowRoot
119
+ ?.querySelector<
120
+ HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement
121
+ >('#label-button')
122
+ ?.focus?.();
123
+ }
124
+
125
private _labelButtonChanged = (label?: Element | undefined) => {
126
this.selectableTarget = label || this;
127
};
0 commit comments