gd-sprest-bs 9.7.0 → 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.
@@ -207,7 +207,7 @@ var Field = function (props) {
207
207
  // Get the items
208
208
  var items = getChoiceItems(displayRadioButtons, props.field, props.value);
209
209
  // See if this is not a required field
210
- if (!isRequired) {
210
+ if (!isRequired && !displayRadioButtons) {
211
211
  // Add a blank entry
212
212
  items = [{
213
213
  text: "",
@@ -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