gd-sprest-bs 9.9.0 → 9.9.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.
@@ -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");
@@ -718,12 +718,14 @@ exports.ListForm.renderEditForm = function (props) {
718
718
  if (control.isReadonly) {
719
719
  // Get the control display properties
720
720
  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;
721
+ if (dispControl) {
722
+ // Update the properties
723
+ control.data = dispControl.data;
724
+ control.label = dispControl.label;
725
+ control.showTime = dispControl.showTime;
726
+ control.type = dispControl.type;
727
+ control.value = dispControl.value;
728
+ }
727
729
  }
728
730
  };
729
731
  // Execute the rendering event