Fix review comments

Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
AmbrishRamachandiran
2026-03-04 17:53:35 +05:30
parent aeb2b53276
commit 445fc101ac
2 changed files with 2 additions and 2 deletions
@@ -45,7 +45,7 @@ export const rangeSliderPropDefs: Record<string, PropDef> = {
type: 'enum',
values: ['[number, number]'],
description: 'Initial value as an array [min, max] for uncontrolled usage.',
default: '[0, 100]',
default: '[minValue, maxValue]',
},
onChange: {
type: 'enum',
@@ -49,7 +49,7 @@ export const RangeSlider = forwardRef<HTMLDivElement, RangeSliderProps>(
useEffect(() => {
const valueArray = props.value ?? props.defaultValue;
if (valueArray && valueArray.length !== 2) {
console.error(
console.warn(
`RangeSlider requires exactly 2 values [min, max], but received ${valueArray.length} values`,
);
}