mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
一些修改。
This commit is contained in:
parent
862e4db4a2
commit
03be623a16
@ -10,7 +10,7 @@ class Select extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.handleChange = this.handleChange.bind(this, props.onChange);
|
||||
this.handleChange = this.handleChange.bind(this);
|
||||
}
|
||||
|
||||
render() {
|
||||
@ -28,7 +28,9 @@ class Select extends React.Component {
|
||||
</select>;
|
||||
}
|
||||
|
||||
handleChange(onChange, event) {
|
||||
handleChange(event) {
|
||||
const { onChange } = this.props;
|
||||
|
||||
const selectedIndex = event.target.selectedIndex;
|
||||
|
||||
if (selectedIndex === -1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user