gd-sprest-bs 10.7.2 → 10.7.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.
@@ -255,11 +255,23 @@ var Field = function (props) {
255
255
  baseValidation = function (ctrl, result) {
256
256
  // See if a value exists
257
257
  if (result.value) {
258
- var ddlItem = result.value;
259
- // See if the text and value don't exist
260
- if (ddlItem.value || ddlItem.text ? false : true) {
261
- // Set the flag
262
- result.isValid = false;
258
+ // See if this is a dropdown
259
+ if (ctrl.props.type == core_1.Components.FormControlTypes.Dropdown) {
260
+ var ddlItem = result.value;
261
+ // See if the text and value don't exist
262
+ if (ddlItem.value || ddlItem.text ? false : true) {
263
+ // Set the flag
264
+ result.isValid = false;
265
+ }
266
+ }
267
+ // Else, it's a switch
268
+ else {
269
+ var cbItem = result.value;
270
+ // See if a value doesn't exist
271
+ if (cbItem.label ? false : true) {
272
+ // Set the flag
273
+ result.isValid = false;
274
+ }
263
275
  }
264
276
  }
265
277
  // Return the result
@@ -231,6 +231,8 @@ var _SPFxWebPart = /** @class */ (function () {
231
231
  catch (_a) { }
232
232
  // Save the configuration
233
233
  _this._props.spfx.properties.configuration = wpCfg;
234
+ // Update the configuration property
235
+ _this.Configuration = wpCfg;
234
236
  // Call the saved event
235
237
  _this._props.onConfigSaved ? _this._props.onConfigSaved(cfg) : null;
236
238
  // See if we are in display mode and the property pane is closed
@@ -23,6 +23,10 @@ var SPFxListFormWebPart = function (wpProps) {
23
23
  // Set the base properties
24
24
  var baseProps = {
25
25
  render: function (el, cfg) {
26
+ // See if the display or edit form already exists
27
+ if (wp.DisplayForm != null || wp.EditForm != null) {
28
+ return;
29
+ }
26
30
  // Set the list form properties
27
31
  var listProps = {
28
32
  itemId: wpProps.spfx.context.itemId,