Skip to content

Commit c6c7d04

Browse files
committed
implement focus for content picker
1 parent 517f3c9 commit c6c7d04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Umbraco.Web.UI.Client/src/packages/property-editors/content-picker/property-editor-ui-content-picker.element.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ export class UmbPropertyEditorUIContentPickerElement
119119
this.#setPickerRootUnique();
120120
}
121121

122+
override focus() {
123+
return this.shadowRoot?.querySelector<UmbInputContentElement>('umb-input-content')?.focus();
124+
}
125+
122126
async #setPickerRootUnique() {
123127
// If we have a root unique value, we don't need to fetch it from the dynamic root
124128
if (this._rootUnique) return;

0 commit comments

Comments
 (0)