gd-sprest-bs 9.9.0 → 9.9.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.
@@ -33,7 +33,7 @@ var DateTime = function (props) {
33
33
  // See if we are disabling the component
34
34
  if (props.disabled) {
35
35
  // Remove the read-only setting set by the flatpickr
36
- textbox.textbox.readOnly = false;
36
+ textbox.elTextbox.readOnly = false;
37
37
  }
38
38
  // Create the element
39
39
  var el = document.createElement("div");
@@ -86,7 +86,7 @@ gd_bs_1.Components.CustomControls.registerType(exports.DateTimeControlType, func
86
86
  // Render a date/time
87
87
  dt = (0, exports.DateTime)({
88
88
  className: props.className,
89
- disabled: props.isDisabled,
89
+ disabled: props.isDisabled || props.isReadonly,
90
90
  el: ctrl.el,
91
91
  options: props.options,
92
92
  showTime: props.showTime,
@@ -62,7 +62,7 @@ var renderDisplay = function (fieldName, props) {
62
62
  // Ensure the field exists
63
63
  if (field == null) {
64
64
  // Log
65
- console.error("[List Form] Field '" + fieldName + "' does not exist. Check the list or query.");
65
+ console.warn("[List Form] Field '" + fieldName + "' does not exist. Check the list or query.");
66
66
  return control;
67
67
  }
68
68
  // See if we are hiding the field
@@ -127,6 +127,7 @@ var renderDisplay = function (fieldName, props) {
127
127
  // Update the value to be text
128
128
  html = elLookup.innerText;
129
129
  control.data = html;
130
+ control.value = html;
130
131
  }
131
132
  break;
132
133
  case gd_sprest_1.SPTypes.FieldType.Note:
@@ -718,12 +719,14 @@ exports.ListForm.renderEditForm = function (props) {
718
719
  if (control.isReadonly) {
719
720
  // Get the control display properties
720
721
  var dispControl = renderDisplay(control.name, props);
721
- // Update the properties
722
- control.data = dispControl.data;
723
- control.label = dispControl.label;
724
- control.showTime = dispControl.showTime;
725
- control.type = dispControl.type;
726
- control.value = dispControl.value;
722
+ if (dispControl) {
723
+ // Update the properties
724
+ control.data = dispControl.data;
725
+ control.label = dispControl.label;
726
+ control.showTime = dispControl.showTime;
727
+ control.type = dispControl.type;
728
+ control.value = dispControl.value;
729
+ }
727
730
  }
728
731
  };
729
732
  // Execute the rendering event