javascript - Use prop as in range of NoUiSlider (React)? -


i trying create nouislider inside child component utilises props of child.

so:

<nouislider   range={{min: this.props.minprice, max: 200}}   margin={100}   start={[1200, 1800]}   connect={true}   tooltips   format={wnumb({     prefix: 'eur',     decimals: 0   })}   step={10} /> 

but error: nouislider: missing 'min' or 'max' in 'range'

i believe happening because nouislider trying initialise before prop available, instead of numeric value, null being put range?

how fix this?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -