implement focus for content picker

This commit is contained in:
Niels Lyngsø
2025-01-24 11:37:11 +01:00
parent 517f3c909c
commit c6c7d043dd

View File

@@ -119,6 +119,10 @@ export class UmbPropertyEditorUIContentPickerElement
this.#setPickerRootUnique();
}
override focus() {
return this.shadowRoot?.querySelector<UmbInputContentElement>('umb-input-content')?.focus();
}
async #setPickerRootUnique() {
// If we have a root unique value, we don't need to fetch it from the dynamic root
if (this._rootUnique) return;