diff --git a/src/Decorator.js b/src/Decorator.js index f9a4b35d..c7f54064 100644 --- a/src/Decorator.js +++ b/src/Decorator.js @@ -6,6 +6,7 @@ module.exports = function () { mixins: [Mixin], render: function () { return React.createElement(Component, { + setState: this.setState.bind(this), setValidations: this.setValidations, setValue: this.setValue, resetValue: this.resetValue, diff --git a/src/HOC.js b/src/HOC.js index df7f6923..6b315ec8 100644 --- a/src/HOC.js +++ b/src/HOC.js @@ -5,6 +5,7 @@ module.exports = function (Component) { mixins: [Mixin], render: function () { return React.createElement(Component, { + setState: this.setState.bind(this), setValidations: this.setValidations, setValue: this.setValue, resetValue: this.resetValue,