Skip to content

Input range is taking in negative even after a positive value is being assigned as minValue #158

Open
@hemant63821

Description

@hemant63821

Even after setting min value for the react input range the slider is accepting negative value, below is the code and the attachment necessary for the issue.
Screenshot 2019-08-23 at 12 15 22 PM
Screenshot 2019-08-23 at 12 15 50 PM

this.state = {
value: { min: 8000, max: 75000 }
}

<InputRange
formatLabel={value => ${this.convertToIndianFormat(value)}kms}
maxValue={100000}
minValue={0}
ref="input_range"
value={this.state.value}
onChange={value => this.setState({ value })}
onChangeComplete={value => this.bindDistanceRange(value.min, value.max, this.cityName, this.sortObject, this.searchText)}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions