@elementor/editor-components 4.2.0-929 → 4.2.0-930
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.
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/create-component-type.ts +11 -1
package/dist/index.mjs
CHANGED
|
@@ -2819,7 +2819,15 @@ function createComponentView(options) {
|
|
|
2819
2819
|
getResolverRenderContext() {
|
|
2820
2820
|
const namespaceKey = this.getNamespaceKey();
|
|
2821
2821
|
const context = this.getRenderContext();
|
|
2822
|
-
|
|
2822
|
+
const ownContext = context?.[namespaceKey];
|
|
2823
|
+
if (!ownContext) {
|
|
2824
|
+
return this._parent?.getResolverRenderContext?.();
|
|
2825
|
+
}
|
|
2826
|
+
const parentResolverContext = this._parent?.getResolverRenderContext?.();
|
|
2827
|
+
return {
|
|
2828
|
+
...parentResolverContext,
|
|
2829
|
+
...ownContext
|
|
2830
|
+
};
|
|
2823
2831
|
}
|
|
2824
2832
|
afterSettingsResolve(settings) {
|
|
2825
2833
|
const componentInstance = settings.component_instance;
|