[Correct level adjustment]

This commit is contained in:
CPunisher 2020-05-06 14:30:36 +08:00
parent 770d0d633c
commit d7a99b7683
1 changed files with 2 additions and 3 deletions

View File

@ -222,9 +222,8 @@ class Qrcode extends React.Component {
<select
className="Qr-select"
value={this.state.correctLevel}
onChange={(e) => { this.setState({correctLevel: parseInt(e.target.value)})
this.setState({correctLevel: parseInt(e.target.value)})
this.handleCreate()
onChange={(e) => {
this.setState({correctLevel: parseInt(e.target.value)}, () => this.handleCreate())
}}>
<option value={1}>7%</option>
<option value={0}>15%</option>