You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if `displayEmpty` was true and children is `[]` for SQFormDropdown then
we would get a "Unable to read property of undefined" error. Optional
chaining fixes that.
✅ Closes: #449
Affected Components: at least SQFormDropdown
If you use give
[]
to SQFormDropdown as children (no options) and passdisplayEmpty
as true the whole thing blows up because of this linehttps://github.com/SelectQuoteLabs/SQForm/blob/master/src/components/SQForm/SQFormDropdown.js#L68
We should use optional chaining on those
.label
readsThe text was updated successfully, but these errors were encountered: