remove dropzone when readonly

This commit is contained in:
Mads Rasmussen
2024-08-21 14:04:27 +02:00
parent 4d82dbd5ec
commit e70069893a

View File

@@ -332,6 +332,7 @@ export class UmbInputRichMediaElement extends UUIFormControlMixin(UmbLitElement,
}
#renderDropzone() {
if (this.readonly) return nothing;
if (this._cards && this._cards.length >= this.max) return;
return html`<umb-dropzone @change=${this.#onUploadCompleted}></umb-dropzone>`;
}