Skip to content

Commit

Permalink
Correctly size of disabled ValidatedDualRange components in InputCont…
Browse files Browse the repository at this point in the history
…rol visualizations

Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Sep 10, 2024
1 parent 22f1d46 commit b59b73c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class RangeControl extends PureComponent<RangeControlProps, RangeControlS

renderControl() {
if (!this.props.control.isEnabled()) {
return <ValidatedDualRange disabled showInput />;
return <ValidatedDualRange disabled showInput formRowDisplay="rowCompressed" />;
}

const decimalPlaces = _.get(this.props, 'control.options.decimalPlaces', 0);
Expand All @@ -121,7 +121,7 @@ export class RangeControl extends PureComponent<RangeControlProps, RangeControlS
id={this.props.control.id}
min={min}
max={max}
formRowDisplay={'rowCompressed'}
formRowDisplay="rowCompressed"
value={this.state.value}
onChange={this.onChangeComplete}
showInput
Expand Down

0 comments on commit b59b73c

Please sign in to comment.