@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.
@@ -4096,7 +4096,7 @@
4096
4096
  // if not an exact match, try finding an input starting with the element id (like radio buttons or checkboxes)
4097
4097
  field = this.formElement.current.querySelector("input[id^=" + elementId);
4098
4098
  }
4099
- if (field.length) {
4099
+ if (field && field.length) {
4100
4100
  // If we got a list with length > 0
4101
4101
  field = field[0];
4102
4102
  }