gd-sprest-bs 10.6.0 → 10.6.1
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.
|
@@ -172,8 +172,6 @@ var _SPFxWebPart = /** @class */ (function () {
|
|
|
172
172
|
onClick: function () {
|
|
173
173
|
// Show the modal
|
|
174
174
|
_this.showEditModal();
|
|
175
|
-
// Close the properties window
|
|
176
|
-
_this._props.spfx.context.propertyPane.close();
|
|
177
175
|
}
|
|
178
176
|
}
|
|
179
177
|
}]
|
|
@@ -196,7 +194,7 @@ var _SPFxWebPart = /** @class */ (function () {
|
|
|
196
194
|
var modalProps = {
|
|
197
195
|
el: elWPConfig,
|
|
198
196
|
onClose: function () {
|
|
199
|
-
// Hide the property pane
|
|
197
|
+
// Hide the property pane to cause the webpart to re-render
|
|
200
198
|
_this._props.spfx.context.propertyPane.close();
|
|
201
199
|
},
|
|
202
200
|
onRenderBody: function (el) {
|
|
@@ -236,14 +234,13 @@ var _SPFxWebPart = /** @class */ (function () {
|
|
|
236
234
|
_this._props.spfx.properties.configuration = wpCfg;
|
|
237
235
|
// Call the saved event
|
|
238
236
|
_this._props.onConfigSaved ? _this._props.onConfigSaved(cfg) : null;
|
|
239
|
-
//
|
|
240
|
-
_this.
|
|
241
|
-
// See if we are in display mode
|
|
242
|
-
if (_this.IsDisplay) {
|
|
237
|
+
// See if we are in display mode and the property pane is closed
|
|
238
|
+
if (_this.IsDisplay && !_this._props.spfx.context.propertyPane.isPropertyPaneOpen()) {
|
|
243
239
|
// Render the display webpart
|
|
244
|
-
|
|
245
|
-
//this.render();
|
|
240
|
+
_this.render();
|
|
246
241
|
}
|
|
242
|
+
// Close the modal
|
|
243
|
+
_this._modal.hide();
|
|
247
244
|
}
|
|
248
245
|
}
|
|
249
246
|
}
|