I just noticed (because it just caused me a problem) that my empty select.value
is ""
rather than null
.
It is in a form and I am setting the Initial data on the form using an object and the source prop for the select is null. But the select's value is still an empty string.
This is a truncated version of what I am passing to the form:
"task_id": 575,
"job_id": 372,
"contractor_id": null,
"task_status_id": 3,
"client_invoice_status_id": 1,
"ic_bill_status_id": 1
}
Here is the Select with the properties of interest: