@rjsf/core 5.7.0 → 5.7.2

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/core.esm.js CHANGED
@@ -4092,7 +4092,7 @@ var Form = /*#__PURE__*/function (_Component) {
4092
4092
  // if not an exact match, try finding an input starting with the element id (like radio buttons or checkboxes)
4093
4093
  field = this.formElement.current.querySelector("input[id^=" + elementId);
4094
4094
  }
4095
- if (field.length) {
4095
+ if (field && field.length) {
4096
4096
  // If we got a list with length > 0
4097
4097
  field = field[0];
4098
4098
  }