From 8644ba0fa443cbf38fac6f7b97eef77245c5a535 Mon Sep 17 00:00:00 2001 From: lucas zientek <152565@supinfo.com> Date: Wed, 3 May 2017 11:13:43 +0200 Subject: [PATCH] valueProp other than value bug solving --- src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.js b/src.js index bc5350f..8287184 100644 --- a/src.js +++ b/src.js @@ -147,7 +147,7 @@ class Validation extends Component { this.baseProps[this.props.valueProp] = props.children.props[this.props.valueProp]; this.currentChildValue = props.children.props[this.props.valueProp]; freshRendered = true; - this.testValidity(props.children.props.value); + this.testValidity(this.currentChildValue); } } }