Skip to content

Commit bdb5881

Browse files
committed
feat(input-range): set default min and max
1 parent 32ac986 commit bdb5881

File tree

1 file changed

+2
-2
lines changed
  • packages/components/src/components/input-range

1 file changed

+2
-2
lines changed

packages/components/src/components/input-range/shadow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,12 @@ export class KolInputRange implements InputRangeAPI, FocusableElement {
267267
/**
268268
* Defines the largest possible input value.
269269
*/
270-
@Prop() public _max?: number | NumberString;
270+
@Prop() public _max?: number | NumberString = 100;
271271

272272
/**
273273
* Defines the smallest possible input value.
274274
*/
275-
@Prop() public _min?: number | NumberString;
275+
@Prop() public _min?: number | NumberString = 0;
276276

277277
/**
278278
* Defines the properties for a message rendered as Alert component.

0 commit comments

Comments
 (0)