remove dropzone when readonly
This commit is contained in:
@@ -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>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user