fix: submit input field

pull/63/head
sualko 2020-05-23 11:12:17 +02:00
parent 93647da46a
commit ade0445a23
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export class SubmitInput extends Component<SubmitInputProps, SubmitInputState> {
render() { render() {
return <form onSubmit={this.onSubmit}> return <form onSubmit={this.onSubmit}>
<input value={this.state.value} <input value={this.state.value}
{...this.props} type={this.props.type}
onChange={event => this.setState({value: event.currentTarget.value})}/> onChange={event => this.setState({value: event.currentTarget.value})}/>
</form>; </form>;
} }