Skip to content

Commit 3430184

Browse files
rvsiaHyperkid123
authored andcommitted
Fix NaN error in slider
1 parent 9ae0a8b commit 3430184

File tree

1 file changed

+2
-2
lines changed
  • packages/pf4-component-mapper/src/files

1 file changed

+2
-2
lines changed

packages/pf4-component-mapper/src/files/slider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Slider = (props) => {
1111

1212
return (
1313
<FormGroup label={label} isRequired={isRequired} helperText={helperText} meta={meta} description={description} id={id || input.name}>
14-
<Grid hasGutter>
14+
<Grid gutter="md">
1515
<GridItem span={10}>
1616
<input
1717
className={'ddorg__pf4-component-mapper__dual-list-slider-input '}
@@ -22,7 +22,7 @@ const Slider = (props) => {
2222
/>
2323
</GridItem>
2424
<GridItem span={2}>
25-
<Badge isRead>{input.value || rest.max / 2}</Badge>
25+
<Badge isRead>{input.value || (rest.max && rest.max / 2) || 50}</Badge>
2626
</GridItem>
2727
</Grid>
2828
</FormGroup>

0 commit comments

Comments
 (0)