diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.element.ts index 449f7c06fd..74711e310c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.element.ts @@ -177,7 +177,7 @@ export class UmbInputDocumentElement extends FormControlMixin(UmbLitElement) { } #renderAddButton() { - if (this.max > 0 && this.selection.length >= this.max) return; + if (this.max === 1 && this.selection.length >= this.max) return; return html` { @@ -183,7 +184,7 @@ export class UmbInputMemberGroupElement extends FormControlMixin(UmbLitElement) } #renderAddButton() { - if (this.max > 0 && this.selection.length >= this.max) return; + if (this.max === 1 && this.selection.length >= this.max) return; return html` 0 && this.selection.length >= this.max) return; + if (this.max === 1 && this.selection.length >= this.max) return; return html` 0 && this.selection.length >= this.max) return; + if (this.max === 1 && this.selection.length >= this.max) return; return html` 0 && this.selection.length >= this.max) return; + if (this.max === 1 && this.selection.length >= this.max) return; return html`