diff --git a/CHANGELOG.md b/CHANGELOG.md index 1608bd0..1e2da07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +1.1.0 / 2017-06-03 +================= +- Fixed issue [#41](https://github.com/kaivi/riek/issues/41) + * Always validate to true if no validator passed + 1.0.9 / 2017-06-01 ================= diff --git a/package.json b/package.json index de6c488..d110c5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "riek", - "version": "1.0.9", + "version": "1.1.0", "description": "React Inline Edit Kit", "author": "Kai Vik ", "license": "MIT", diff --git a/src/RIEBase.js b/src/RIEBase.js index a616aca..db6d8fc 100644 --- a/src/RIEBase.js +++ b/src/RIEBase.js @@ -45,10 +45,8 @@ export default class RIEBase extends React.Component { debug(`doValidations(${value})`) let isValid; if(this.props.validate) { - debug('using this.props.validate') isValid = this.props.validate(value); } else if (this.validate) { - debug('using this.validate') isValid = this.validate(value); } else return true this.setState({invalid: !isValid});