Skip to content

Commit

Permalink
Correct the size of disabled ValidatedDualRange components in InputCo…
Browse files Browse the repository at this point in the history
…ntrol visualizations (opensearch-project#8108)

* Correct the size of disabled ValidatedDualRange components in InputControl visualizations

Signed-off-by: Miki <miki@amazon.com>

* Changeset file for PR opensearch-project#8108 created/updated

* Update snapshot

Signed-off-by: Miki <miki@amazon.com>

---------

Signed-off-by: Miki <miki@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
AMoo-Miki and opensearch-changeset-bot[bot] authored Sep 11, 2024
1 parent 42317f1 commit 7aecd73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8108.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Correct the size of disabled ValidatedDualRange components in InputControl visualizations ([#8108](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8108))

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 7aecd73

Please sign in to comment.