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.
- package/build/components/listForm/index.js +5 -0
- package/dist/gd-sprest-bs-icons.js +1 -1
- package/dist/gd-sprest-bs-icons.min.js +1 -1
- package/dist/gd-sprest-bs.d.ts +3 -0
- package/dist/gd-sprest-bs.js +1 -1
- package/dist/gd-sprest-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/listForm/index.ts +6 -0
- package/src/components/listForm/types.d.ts +3 -0
|
@@ -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,
|