@rjsf/utils 5.24.1 → 5.24.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.
package/dist/index.js CHANGED
@@ -1107,7 +1107,7 @@ function mergeDefaultsWithFormData(defaults, formData, mergeExtraArrayDefaults =
1107
1107
  const overrideArray = overrideFormDataWithDefaults ? defaultsArray : formData;
1108
1108
  const overrideOppositeArray = overrideFormDataWithDefaults ? formData : defaultsArray;
1109
1109
  const mapped = overrideArray.map((value, idx) => {
1110
- if (overrideOppositeArray[idx]) {
1110
+ if (overrideOppositeArray[idx] !== void 0) {
1111
1111
  return mergeDefaultsWithFormData(
1112
1112
  defaultsArray[idx],
1113
1113
  formData[idx],
@@ -2582,6 +2582,9 @@ function getInputProps(schema, defaultType, options = {}, autoDefaultStepAny = t
2582
2582
  if (options.autocomplete) {
2583
2583
  inputProps.autoComplete = options.autocomplete;
2584
2584
  }
2585
+ if (options.accept) {
2586
+ inputProps.accept = options.accept;
2587
+ }
2585
2588
  return inputProps;
2586
2589
  }
2587
2590