From a868ed311e684b27aa33df4139b730c56aab0680 Mon Sep 17 00:00:00 2001 From: "Dustin L. Dodson" Date: Thu, 8 Mar 2018 12:42:54 -0900 Subject: [PATCH] Fixed case where update function is called on first loss of focus. Closes #33. --- src/RIEStatefulBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RIEStatefulBase.js b/src/RIEStatefulBase.js index 20b5e18..cb8e9cc 100644 --- a/src/RIEStatefulBase.js +++ b/src/RIEStatefulBase.js @@ -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) {