element-book 26.15.0 → 26.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -71,7 +71,15 @@ export const BookPageControls = defineBookElement()({
|
|
|
71
71
|
dispatch(new events.controlValueChange({
|
|
72
72
|
fullUrlBreadcrumbs,
|
|
73
73
|
newValues: {
|
|
74
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Only include values for controls defined in the current
|
|
76
|
+
* config, not inherited parent values. This prevents
|
|
77
|
+
* overwriting parent controls with their inherited values.
|
|
78
|
+
*/
|
|
79
|
+
...Object.fromEntries(Object.keys(inputs.config).map((key) => [
|
|
80
|
+
key,
|
|
81
|
+
inputs.currentValues[key],
|
|
82
|
+
])),
|
|
75
83
|
[controlName]: newValue,
|
|
76
84
|
},
|
|
77
85
|
}));
|