add tdo comment input-media.element.ts

This commit is contained in:
Niels Lyngsø
2024-09-02 19:35:14 +02:00
committed by GitHub
parent 92ae4dd02c
commit fa68faab01

View File

@@ -222,6 +222,7 @@ export class UmbInputMediaElement extends UmbFormControlMixin<string | undefined
}
#renderAddButton() {
// TODO: Stop preventing adding more, instead implement proper validation for user feedback. [NL]
if (this._cards && this.max && this._cards.length >= this.max) return nothing;
if (this.readonly && this._cards.length > 0) {
return nothing;