I am using antd slider component . I am trying to implement a range slider which is also binded with two number inputs like the image attached below
Find my code in the given link https://codesandbox.io/s/icy-framework-xpvl9. On adding range props to the slider component it throws error. I am confused with the logic in implementing min and max in the number inputs binded with the range slider.
<Slider
className="slider-main-div"
min={min}
max={max - 1}
onChange={this.onChange}
value={typeof inputValue === "number" ? inputValue : 0}
/>
<div className="range-input-number-main">
<InputNumber
className="min-input-main"
min={min + 1}
max={max - 1}
value={inputValue}
onChange={this.onChangeMin}
/>
<span className="range-span">to</span>
<InputNumber
className="min-input-main"
min={21}
max={50}
value={inputValue}
onChange={this.onChangeMax}
/>
