dropdown render

This commit is contained in:
Lone Iversen
2023-10-09 15:14:54 +02:00
committed by Jacob Overgaard
parent 90c3e5c0f1
commit 338b98a02f
3 changed files with 3 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ export * from './body-layout/body-layout.element.js';
export * from './button-with-dropdown/button-with-dropdown.element.js'; // TODO: delete this and change usage to umb-dropdown
export * from './code-block/index.js';
export * from './input-date/index.js';
export * from './input-dropdown/index.js';
export * from './dropdown/index.js';
export * from './empty-state/index.js';
export * from './entity-actions-bundle/index.js';

View File

@@ -1,4 +1,4 @@
import { css, html, nothing, customElement, property, query, state } from '@umbraco-cms/backoffice/external/lit';
import { css, html, customElement, property, query } from '@umbraco-cms/backoffice/external/lit';
import { FormControlMixin, UUISelectEvent } from '@umbraco-cms/backoffice/external/uui';
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
@@ -28,11 +28,10 @@ export class UmbInputDropdownListElement extends FormControlMixin(UmbLitElement)
}
render() {
if (!this.options) return nothing;
return html`<uui-select
label=${this.localize.term('formProviderFieldTypes_dropdownName')}
.placeholder=${this.placeholder ?? ''}
.options=${this.options}
.options=${this.options ?? []}
@change=${this.#onChange}></uui-select>`;
}

View File

@@ -3,7 +3,6 @@ import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/
import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit';
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
import { UmbPropertyEditorExtensionElement } from '@umbraco-cms/backoffice/extension-registry';
import '../../../components/input-dropdown/input-dropdown-list.element.js';
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
/**