Merge pull request #1734 from umbraco/bugfix/property-editor-ui-picker

fix data-type- property-editor-ui-picker
This commit is contained in:
Niels Lyngsø
2024-04-30 18:59:20 +02:00
committed by GitHub

View File

@@ -30,14 +30,13 @@ export class UmbPropertyEditorUIPickerModalElement extends UmbModalBaseElement<
connectedCallback(): void {
super.connectedCallback();
this._submitLabel = this.data?.submitLabel ?? this._submitLabel;
// TODO: We never parse on a submit label, so this seem weird as we don't enable this of other places.
//this._submitLabel = this.data?.submitLabel ?? this._submitLabel;
this.#usePropertyEditorUIs();
}
#usePropertyEditorUIs() {
if (!this.data) return;
this.observe(umbExtensionsRegistry.byType('propertyEditorUi'), (propertyEditorUIs) => {
// Only include Property Editor UIs which has Property Editor Schema Alias
this._propertyEditorUIs = propertyEditorUIs.filter(