From 8650bd96a7969405968dbb0356b4ee24c8986305 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:01:42 -0700 Subject: [PATCH] Bug Fixes for Vis Builder (#6811) (#6891) * Bug Fixes for Vis Builder * Changeset file for PR #6811 created/updated --------- (cherry picked from commit 766a39a72eddd6082d4579412820bee49bc81ddf) Signed-off-by: Suchit Sahoo Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/6811.yml | 2 ++ .../public/application/components/data_tab/dropbox.scss | 1 + .../visualizations/public/persisted_state/persisted_state.ts | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/6811.yml diff --git a/changelogs/fragments/6811.yml b/changelogs/fragments/6811.yml new file mode 100644 index 00000000000..b7901437ca6 --- /dev/null +++ b/changelogs/fragments/6811.yml @@ -0,0 +1,2 @@ +fix: +- Bug Fixes for Vis Builder ([#6811](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6811)) \ No newline at end of file diff --git a/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss b/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss index b50152f0983..89c7832ac40 100644 --- a/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss +++ b/src/plugins/vis_builder/public/application/components/data_tab/dropbox.scss @@ -21,6 +21,7 @@ padding: calc($euiSizeS - ($euiSizeXS / 2)) $euiSizeS $euiSizeS $euiSizeS; background-color: $euiColorLightShade; border-radius: $euiBorderRadius; + overflow-x: hidden; } &__field { diff --git a/src/plugins/visualizations/public/persisted_state/persisted_state.ts b/src/plugins/visualizations/public/persisted_state/persisted_state.ts index fc7d38c4a83..1b1bed5a288 100644 --- a/src/plugins/visualizations/public/persisted_state/persisted_state.ts +++ b/src/plugins/visualizations/public/persisted_state/persisted_state.ts @@ -236,7 +236,7 @@ export class PersistedState extends EventEmitter { } // update the merged state value - const targetObj = this._mergedState || cloneDeep(this._defaultState); + const targetObj = cloneDeep(this._mergedState) || cloneDeep(this._defaultState); const sourceObj = merge({}, this._changedState); // handler arguments are (targetValue, sourceValue, key, target, source)