@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/utils.esm.js CHANGED
@@ -969,7 +969,7 @@ function mergeDefaultsWithFormData(defaults, formData, mergeExtraArrayDefaults =
969
969
  const overrideArray = overrideFormDataWithDefaults ? defaultsArray : formData;
970
970
  const overrideOppositeArray = overrideFormDataWithDefaults ? formData : defaultsArray;
971
971
  const mapped = overrideArray.map((value, idx) => {
972
- if (overrideOppositeArray[idx]) {
972
+ if (overrideOppositeArray[idx] !== void 0) {
973
973
  return mergeDefaultsWithFormData(
974
974
  defaultsArray[idx],
975
975
  formData[idx],
@@ -2444,6 +2444,9 @@ function getInputProps(schema, defaultType, options = {}, autoDefaultStepAny = t
2444
2444
  if (options.autocomplete) {
2445
2445
  inputProps.autoComplete = options.autocomplete;
2446
2446
  }
2447
+ if (options.accept) {
2448
+ inputProps.accept = options.accept;
2449
+ }
2447
2450
  return inputProps;
2448
2451
  }
2449
2452