fix(bugs): enhancements and bug fixes (#4036)
This commit is contained in:
1 parent
41a8d105f1
commit
e80fc6f477
58 files changed
+768
-148
No files matched your search
@@ -63,7 +63,7 @@ const InputRange: React.FC<InputRangeProps> = ({
|
||||
}) => {
|
||||
const [rangeValue, setRangeValue] = useState(value);
|
||||
const maxDigits = getMaxDigits(maxValue, step);
|
||||
const labelWidth = `${maxDigits * 10}px`;
|
||||
const labelWidth = `${maxDigits * 15}px`;
|
||||
|
||||
useEffect(() => setRangeValue(value), [value]);
|
||||
|
||||
@@ -93,7 +93,7 @@ const InputRange: React.FC<InputRangeProps> = ({
|
||||
/>
|
||||
) : (
|
||||
<span className={classNames(labelClassName ?? 'text-white')}>
|
||||
{rangeValue.toFixed(maxDigits)} {unit}
|
||||
{rangeValue} {unit}
|
||||
</span>
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user