From 6f2a21e3efd1ec77f8b87aabee80d8df91ca6c52 Mon Sep 17 00:00:00 2001 From: Mayank Agarwal Date: Tue, 6 Oct 2015 11:25:59 +0530 Subject: [PATCH] fix extending props in HOC. --- src/HOC.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HOC.js b/src/HOC.js index acbffa9..df7f692 100644 --- a/src/HOC.js +++ b/src/HOC.js @@ -19,7 +19,8 @@ module.exports = function (Component) { isRequired: this.isRequired, showRequired: this.showRequired, showError: this.showError, - isValidValue: this.isValidValue + isValidValue: this.isValidValue, + ...this.props }); } });