@plattar/plattar-ar-adapter 1.167.1 → 1.167.3

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.
@@ -1265,7 +1265,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
1265
1265
  }
1266
1266
  removeRenderer() {
1267
1267
  if (this._element) {
1268
- this._element.remove();
1268
+ this.removeChild(this._element);
1269
1269
  this._element = null;
1270
1270
  return true;
1271
1271
  }
@@ -1533,6 +1533,16 @@ class PlattarController {
1533
1533
  const shadow = this.parent.shadowRoot || this.parent.attachShadow({ mode: 'open' });
1534
1534
  shadow.append(element);
1535
1535
  }
1536
+ /**
1537
+ *
1538
+ * @param element
1539
+ */
1540
+ removeChild(element) {
1541
+ const shadow = this.parent.shadowRoot;
1542
+ if (shadow) {
1543
+ shadow.removeChild(element);
1544
+ }
1545
+ }
1536
1546
  }
1537
1547
  exports.PlattarController = PlattarController;
1538
1548
 
@@ -1758,7 +1768,7 @@ class ProductController extends plattar_controller_1.PlattarController {
1758
1768
  }
1759
1769
  removeRenderer() {
1760
1770
  if (this._element) {
1761
- this._element.remove();
1771
+ this.removeChild(this._element);
1762
1772
  this._element = null;
1763
1773
  return true;
1764
1774
  }
@@ -2006,7 +2016,7 @@ class VTOController extends plattar_controller_1.PlattarController {
2006
2016
  }
2007
2017
  removeRenderer() {
2008
2018
  if (this._element) {
2009
- this._element.remove();
2019
+ this.removeChild(this._element);
2010
2020
  this._element = null;
2011
2021
  return true;
2012
2022
  }
@@ -2831,7 +2841,7 @@ exports.Util = Util;
2831
2841
  },{}],16:[function(require,module,exports){
2832
2842
  "use strict";
2833
2843
  Object.defineProperty(exports, "__esModule", { value: true });
2834
- exports.default = "1.167.1";
2844
+ exports.default = "1.167.3";
2835
2845
 
2836
2846
  },{}],17:[function(require,module,exports){
2837
2847
  "use strict";