Skip to content

Commit

Permalink
Fixed case where update function is called on first loss of focus. Cl…
Browse files Browse the repository at this point in the history
…oses kaivi#33.
  • Loading branch information
Dustin L. Dodson committed Mar 8, 2018
1 parent e598fe9 commit a868ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RIEStatefulBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class RIEStatefulBase extends RIEBase {
this.props.beforeFinish ? this.props.beforeFinish() : null;
let newValue = ReactDOM.findDOMNode(this.refs.input).value;
const result = this.doValidations(newValue);
if(result && this.props.value !== newValue) {
if(result && this.props.value != newValue) {
this.commit(newValue);
}
if(!result && this.props.handleValidationFail) {
Expand Down

0 comments on commit a868ed3

Please sign in to comment.