Skip to content

Commit

Permalink
onChange input handler fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Dec 20, 2018
1 parent fcfb3e6 commit 2f89dfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions old-ui/app/components/send/send-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ class SendTransactionField extends Component {
placeholder={this.props.placeholder}
value={this.state.val}
disabled={this.props.disabled}
onChange={(val) => {
onChange={(e) => {
this.setState({
val,
val: e.target.value,
})
this.props.onChange(val)
this.props.onChange(e.target.value)
}}
style={{ marginTop: '5px' }}
/>
Expand Down Expand Up @@ -231,7 +231,7 @@ class SendTransactionScreen extends PersistentForm {
disabled={!isInput}
placeholder={params.type}
defaultValue={defaultValue}
onChange={e => isInput ? this.handleInputChange(e.target.value, params.type, ind) : null}
onChange={val => isInput ? this.handleInputChange(val, params.type, ind) : null}
/>
)
}
Expand Down

0 comments on commit 2f89dfc

Please sign in to comment.