gd-sprest-bs 10.9.0 → 10.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.
@@ -826,6 +826,11 @@ exports.ListForm.renderEditForm = function (props) {
826
826
  // Call the filter event
827
827
  lookupFilter = props.onFilterLookupField ? props.onFilterLookupField(field) : null;
828
828
  }
829
+ // See if there is a custom event for setting the value
830
+ if (props.onSetFieldDefaultValue) {
831
+ // Call the event to override the value
832
+ value[fieldName] = props.onSetFieldDefaultValue(field, value[fieldName]);
833
+ }
829
834
  // Create the control
830
835
  var fieldControl = (0, field_1.Field)({
831
836
  controlMode: props.controlMode,