Skip to content

Commit

Permalink
fix: πŸ› add error props to InputLabel and Select
Browse files Browse the repository at this point in the history
βœ… Closes: #92
  • Loading branch information
Cody Rose committed Mar 2, 2021
1 parent 755d6e9 commit 6285af0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/SQForm/SQFormDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function SQFormDropdown({

return (
<Grid item sm={size}>
<InputLabel id={labelID}>{label}</InputLabel>
<InputLabel error={isFieldError} id={labelID}>
{label}
</InputLabel>
<Select
displayEmpty={true}
input={<Input disabled={isDisabled} name={name} />}
Expand All @@ -72,6 +74,7 @@ function SQFormDropdown({
fullWidth={true}
labelId={labelID}
renderValue={renderValue}
error={isFieldError}
{...muiFieldProps}
>
{options.map(option => {
Expand Down

0 comments on commit 6285af0

Please sign in to comment.