mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Controls] Fix range slider control diffing (#174394)
Fixes https://github.com/elastic/kibana/issues/174396 ## Summary Fixes bug where certain changes to range slider controls would not trigger unsaved changes. Before:e7434a96
-f79e-4a86-b538-5ffddb6c9bd9 After:e2f98df4
-4eee-459a-aa99-c1296ed879f7
This commit is contained in:
parent
315cf9d399
commit
affa373d50
1 changed files with 3 additions and 3 deletions
|
@ -34,11 +34,11 @@ export const ControlPanelDiffSystems: {
|
|||
return false;
|
||||
}
|
||||
|
||||
const { value: valueA = ['', ''] }: Partial<RangeSliderEmbeddableInput> =
|
||||
const { value: valueA = ['', ''], ...inputA }: Partial<RangeSliderEmbeddableInput> =
|
||||
initialInput.explicitInput;
|
||||
const { value: valueB = ['', ''] }: Partial<RangeSliderEmbeddableInput> =
|
||||
const { value: valueB = ['', ''], ...inputB }: Partial<RangeSliderEmbeddableInput> =
|
||||
newInput.explicitInput;
|
||||
return isEqual(valueA, valueB);
|
||||
return isEqual(valueA, valueB) && deepEqual(inputA, inputB);
|
||||
},
|
||||
},
|
||||
[OPTIONS_LIST_CONTROL]: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue