Skip to content

Commit

Permalink
improve blank handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Sep 16, 2022
1 parent ffd813e commit 727231b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion packages/material-web/src/components/Fieldset.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export default function Fieldset({ label, children }) {
return (
<Card className={classes.card}>
<CardContent>
<Typography color="textSecondary">{label}</Typography>
{label && (
<Typography color="textSecondary">{label}</Typography>
)}
{children}
</CardContent>
</Card>
Expand Down
6 changes: 1 addition & 5 deletions packages/material-web/src/inputs/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ export default function Select({
}, [choices]);

const Option = native
? ({ value, disabled, children }) => (
<option value={value} disabled={disabled}>
{children}
</option>
)
? ({ value, children }) => <option value={value}>{children}</option>
: ({ value, disabled, children, ...rest }) => (
<MenuItem value={value} disabled={disabled} {...rest}>
{multiple && (
Expand Down

0 comments on commit 727231b

Please sign in to comment.