Skip to content
Snippets Groups Projects
Commit 5f9ca6ef authored by Chris Beer's avatar Chris Beer
Browse files

Mark the current line-weight as selected; fixes #36

parent 5e5b3619
No related branches found
No related tags found
No related merge requests found
...@@ -367,12 +367,15 @@ class AnnotationCreation extends Component { ...@@ -367,12 +367,15 @@ class AnnotationCreation extends Component {
> >
<Paper> <Paper>
<ClickAwayListener onClickAway={this.handleCloseLineWeight}> <ClickAwayListener onClickAway={this.handleCloseLineWeight}>
<MenuList> <MenuList autoFocus role="listbox">
{[1, 3, 5, 10, 50].map((option, index) => ( {[1, 3, 5, 10, 50].map((option, index) => (
<MenuItem <MenuItem
key={option} key={option}
onClick={this.handleLineWeightSelect} onClick={this.handleLineWeightSelect}
value={option} value={option}
selected={option == strokeWidth}
role="option"
aria-selected={option == strokeWidth}
> >
{option} {option}
</MenuItem> </MenuItem>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment