Skip to content

Commit

Permalink
resolve slider value set it to min if null or undefined
Browse files Browse the repository at this point in the history
Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 committed Feb 2, 2024
1 parent bfc7089 commit 6cfc65d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SliderControl extends React.Component {
>
<Slider
{...validationProps}
value={this.props.value ? this.props.value : minValue}
value={this.props.value !== null && typeof this.props.value !== "undefined" ? this.props.value : minValue}
min={minValue}
max={maxValue}
minLabel={minLabel}
Expand Down

0 comments on commit 6cfc65d

Please sign in to comment.