Skip to content

Commit

Permalink
Missing form label
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 27, 2020
1 parent eedf995 commit 323dce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/src/pages/components/selects/GroupedSelect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel';
import Input from '@material-ui/core/Input';
import MenuItem from '@material-ui/core/MenuItem';
import ListSubheader from '@material-ui/core/ListSubheader';
import FormControl from '@material-ui/core/FormControl';
Expand All @@ -21,7 +20,7 @@ export default function GroupedSelect() {
<div>
<FormControl className={classes.formControl}>
<InputLabel htmlFor="grouped-native-select">Grouping</InputLabel>
<Select native defaultValue="" input={<Input id="grouped-native-select" />}>
<Select native defaultValue="" id="grouped-native-select">
<option aria-label="None" value="" />
<optgroup label="Category 1">
<option value={1}>Option 1</option>
Expand All @@ -35,7 +34,7 @@ export default function GroupedSelect() {
</FormControl>
<FormControl className={classes.formControl}>
<InputLabel htmlFor="grouped-select">Grouping</InputLabel>
<Select defaultValue="" input={<Input id="grouped-select" />}>
<Select defaultValue="" id="grouped-select">
<MenuItem value="">
<em>None</em>
</MenuItem>
Expand Down
5 changes: 2 additions & 3 deletions docs/src/pages/components/selects/GroupedSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel';
import Input from '@material-ui/core/Input';
import MenuItem from '@material-ui/core/MenuItem';
import ListSubheader from '@material-ui/core/ListSubheader';
import FormControl from '@material-ui/core/FormControl';
Expand All @@ -23,7 +22,7 @@ export default function GroupedSelect() {
<div>
<FormControl className={classes.formControl}>
<InputLabel htmlFor="grouped-native-select">Grouping</InputLabel>
<Select native defaultValue="" input={<Input id="grouped-native-select" />}>
<Select native defaultValue="" id="grouped-native-select">
<option aria-label="None" value="" />
<optgroup label="Category 1">
<option value={1}>Option 1</option>
Expand All @@ -37,7 +36,7 @@ export default function GroupedSelect() {
</FormControl>
<FormControl className={classes.formControl}>
<InputLabel htmlFor="grouped-select">Grouping</InputLabel>
<Select defaultValue="" input={<Input id="grouped-select" />}>
<Select defaultValue="" id="grouped-select">
<MenuItem value="">
<em>None</em>
</MenuItem>
Expand Down

0 comments on commit 323dce3

Please sign in to comment.