gd-sprest-bs 10.5.1 → 10.5.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.
@@ -37,6 +37,10 @@ var _SPFxWebPart = /** @class */ (function () {
37
37
  console.error("[gd-sprest-bs] The spfx property wasn't set.");
38
38
  return;
39
39
  }
40
+ // Clear the webpart
41
+ while (this._props.spfx.domElement.firstChild) {
42
+ this._props.spfx.domElement.removeChild(this._props.spfx.domElement.firstChild);
43
+ }
40
44
  // Set the page context
41
45
  gd_sprest_1.ContextInfo.setPageContext(this._props.spfx.context.pageContext);
42
46
  // Try to parse the configuration
@@ -63,9 +67,12 @@ var _SPFxWebPart = /** @class */ (function () {
63
67
  groupFields: [{
64
68
  targetProperty: "configuration",
65
69
  type: gd_sprest_1.SPTypes.PropertyPaneType.Button,
66
- onClick: function () {
67
- // Call the click event
68
- _this.editButtonClick();
70
+ properties: {
71
+ text: "Configuration",
72
+ onClick: function () {
73
+ // Call the click event
74
+ _this.editButtonClick();
75
+ }
69
76
  }
70
77
  }]
71
78
  }