zillow / react-slider

Accessible, CSS agnostic, slider component for React.
https://zillow.github.io/react-slider
MIT License
883 stars 231 forks source link

The specified value "1,669" cannot be parsed, or is out of range. #293

Closed NurulloSalaydinov closed 1 year ago

NurulloSalaydinov commented 1 year ago

I'm using it for my shop price range but when value changes it throws warning like this

The specified value "1,669" cannot be parsed, or is out of range.

here is my code:

`import { useState } from 'react'; import '../assets/css/filter.css'; import Accordion from './Accordion';

import ReactSlider from 'react-slider';

import { categories } from './data/data';

const Filter = () => {

const [min, setMin] = useState(1); const [max, setMax] = useState(10000);

return (

{categories.map(category => )}
dan setMin(e.target.value)} />
oldin setMax(e.target.value)} value={max} />
{ setMin(min); setMax(max); }} />

) }

export default Filter`

thanks for your reply! :)

NurulloSalaydinov commented 1 year ago

I'm sorry I understand my problem