Skip to content

Commit 90e26f4

Browse files
Update core/src/components/range/range.tsx
Co-authored-by: Brandy Smith <[email protected]>
1 parent 5abf5ef commit 90e26f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/components/range/range.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ export class Range implements ComponentInterface {
314314
}
315315

316316
this.inheritedAttributes = inheritAriaAttributes(this.el);
317-
// If the min or max is not safe, set it to 0 or 100 respectively.
318-
// Our watch does this, but not before the initial load.
317+
// If min, max, or step are not safe, set them to 0, 100, and 1, respectively.
318+
// Each watch does this, but not before the initial load.
319319
this.min = isSafeNumber(this.min) ? this.min : 0;
320320
this.max = isSafeNumber(this.max) ? this.max : 100;
321321
this.step = isSafeNumber(this.step) ? this.step : 1;

0 commit comments

Comments
 (0)