From f2b8e9025d606e75d55a0bb60a433a1d98f2a8a5 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Thu, 30 Jun 2016 08:00:40 -0400 Subject: [PATCH] switch ordering in defaults This was assigning `props` to defaults, rather than the other way around. Fixes #618. --- src/components/forms/validations.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/forms/validations.jsx b/src/components/forms/validations.jsx index db0b71632..2107254c4 100644 --- a/src/components/forms/validations.jsx +++ b/src/components/forms/validations.jsx @@ -29,8 +29,8 @@ module.exports.validationHOCFactory = function (defaultValidationErrors) { var ValidatedComponent = React.createClass({ render: function () { var validationErrors = defaults( - defaultValidationErrors, - this.props.validationErrors + this.props.validationErrors, + defaultValidationErrors ); return (