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 (#8108)

* Correct the size of disabled ValidatedDualRange components in InputControl visualizations

Signed-off-by: Miki <[email protected]>

* Changeset file for PR #8108 created/updated

* Update snapshot

Signed-off-by: Miki <[email protected]>

---------

Signed-off-by: Miki <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 7aecd73)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent b57c2ae commit 89399d8
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 89399d8

Please sign in to comment.