gd-sprest-bs 9.7.2 → 9.7.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.
@@ -819,6 +819,18 @@ exports.ListForm.renderEditForm = function (props) {
819
819
  },
820
820
  getItem: function () { return props.info.item; },
821
821
  getValues: getValues,
822
+ insertControl: function (idx, control) {
823
+ // Append the controls
824
+ form.insertControl(idx, control);
825
+ // Wait for the controls to be loaded
826
+ setTimeout(function () {
827
+ var newControl = control.name ? form.getControl(control.name) : null;
828
+ if (newControl) {
829
+ // Append the control
830
+ customControls.push(newControl);
831
+ }
832
+ }, 10);
833
+ },
822
834
  isValid: function () {
823
835
  var isValid = true;
824
836
  // Parse the fields