Skip to content

Commit 0480a32

Browse files
authored
Merge pull request #18189 from umbraco/v15/bugfix/range-input-simpler-infinite-max-indication
ensure default in Infinity
2 parents 341534c + da3bc9a commit 0480a32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-editor/Umbraco.BlockList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const manifest: ManifestPropertyEditorSchema = {
1919
label: 'Amount',
2020
description: 'Set a required range of blocks',
2121
propertyEditorUiAlias: 'Umb.PropertyEditorUi.NumberRange',
22-
config: [{ alias: 'validationRange', value: { min: 0, max: Infinity } }],
22+
config: [{ alias: 'validationRange', value: { min: 0 } }],
2323
},
2424
],
2525
},

src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class UmbInputNumberRangeElement extends UmbFormControlMixin(UmbLitElemen
123123
label=${this.maxLabel}
124124
min=${ifDefined(this.validationRange?.min)}
125125
max=${ifDefined(this.validationRange?.max)}
126-
placeholder=${this.validationRange?.max === Infinity ? '∞' : (this.validationRange?.max ?? '')}
126+
placeholder=${this.validationRange?.max ?? '∞'}
127127
.value=${this._maxValue}
128128
@input=${this.#onMaxInput}></uui-input>
129129
`;

0 commit comments

Comments
 (0)