@embeddable.com/sdk-core 4.1.9-next.0 → 4.1.9-next.2
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/package.json
CHANGED
|
@@ -30,6 +30,7 @@ export class EmbeddableComponent {
|
|
|
30
30
|
|
|
31
31
|
@Watch('theme')
|
|
32
32
|
watchTheme() {
|
|
33
|
+
if (!this.rootElement) return;
|
|
33
34
|
const eventClientContext = new CustomEvent('embeddable-event:update-theme', {
|
|
34
35
|
bubbles: false,
|
|
35
36
|
detail: this.theme,
|
|
@@ -106,10 +107,11 @@ export class EmbeddableComponent {
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
private handlePops() {
|
|
110
|
+
const props = JSON.parse(this.props);
|
|
109
111
|
render(
|
|
110
112
|
this.rootElement,
|
|
111
113
|
this.componentName,
|
|
112
|
-
|
|
114
|
+
props,
|
|
113
115
|
JSON.parse(this.clientContext),
|
|
114
116
|
this.theme
|
|
115
117
|
);
|