Merges
This commit is contained in:
@@ -24,6 +24,7 @@ export class BoundInput extends React.Component {
|
||||
const { name, binder } = this.props
|
||||
|
||||
this.state = binder.getFieldState(name)
|
||||
this.handleChangeText = this.handleChangeText.bind(this)
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
@@ -32,12 +33,12 @@ export class BoundInput extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
@autobind
|
||||
// @autobind : There seems to be a bug with using this here, so we just do it the old way
|
||||
handleChangeText(newText) {
|
||||
if (this && this.props && this.props.binder) {
|
||||
this.setState(
|
||||
this.props.binder.updateFieldValue(this.props.name, newText)
|
||||
)
|
||||
const { binder, name } = this.props
|
||||
|
||||
if (binder) {
|
||||
this.setState(binder.updateFieldValue(name, newText))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user