mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修复bug。
This commit is contained in:
parent
ba9c8848e7
commit
bb2b2e7365
@ -32,7 +32,7 @@ class Select extends React.Component {
|
||||
style={style}
|
||||
onChange={this.handleChange}>
|
||||
{options && Object.keys(options).map(n => {
|
||||
return <option value={options[n].value} key={options[n].value}>{options[n].text}</option>;
|
||||
return <option value={n} key={n}>{options[n]}</option>;
|
||||
})}
|
||||
</select>;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user