@embeddable.com/sdk-core 3.5.3 → 3.5.4

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/lib/index.esm.js CHANGED
@@ -21004,7 +21004,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
21004
21004
  };
21005
21005
 
21006
21006
  var name = "@embeddable.com/sdk-core";
21007
- var version = "3.5.3";
21007
+ var version = "3.5.4";
21008
21008
  var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
21009
21009
  var keywords = [
21010
21010
  "embeddable",
package/lib/index.js CHANGED
@@ -21031,7 +21031,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
21031
21031
  };
21032
21032
 
21033
21033
  var name = "@embeddable.com/sdk-core";
21034
- var version = "3.5.3";
21034
+ var version = "3.5.4";
21035
21035
  var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
21036
21036
  var keywords = [
21037
21037
  "embeddable",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -36,7 +36,10 @@ export class EmbeddableComponent {
36
36
  }
37
37
 
38
38
  disconnectedCallback() {
39
- this.rootElement.dispatchEvent(new CustomEvent('EMBEDDABLE_COMPONENT:UNMOUNT'));
39
+ // Component is no longer connected to the document > Must be unmounted
40
+ if(!this.rootElement.isConnected) {
41
+ this.rootElement.dispatchEvent(new CustomEvent('EMBEDDABLE_COMPONENT:UNMOUNT'));
42
+ }
40
43
  }
41
44
 
42
45
  componentWillUpdate() {