Skip to content

Commit

Permalink
Merge pull request #19 from CASL/rod-editor-fixes
Browse files Browse the repository at this point in the history
fix(RodEditor): Update select with layer cell
  • Loading branch information
floryst authored Apr 30, 2018
2 parents 4c47ac4 + 4901c25 commit fddecfc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/simput/RodEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,20 @@ export default class RodEditor extends React.Component {
},
{
key: 'cell',
dataKey: 'cell',
dataKey: 'label',
label: 'Cell/Layer Type',
classes: style.centeredCell,
render: (cellName, layer) => (
<select
className={style.cellSelect}
value={cellName}
onChange={(e) => this.onCellChange(layer, e.target.value)}
>
{cells.map((name) => <option key={name}>{name}</option>)}
{cells.map((name) => (
<option key={name} value={name}>
{name}
</option>
))}
</select>
),
},
Expand Down

0 comments on commit fddecfc

Please sign in to comment.