add readonly mode to multi select

This commit is contained in:
Mads Rasmussen
2024-08-20 10:16:19 +02:00
parent 8b3d91757e
commit 68a78c79e9

View File

@@ -77,6 +77,10 @@ export class UmbPropertyEditorUIDropdownElement extends UmbLitElement implements
}
#renderDropdownMultiple() {
if (this.readonly) {
return html`<div>${this.value?.join(', ')}</div>`;
}
return html`
<select id="native" multiple @change=${this.#onChangeMulitple}>
${map(