diff --git a/src/text-field.jsx b/src/text-field.jsx index 397d2a4259c94f..8be6b8bfada799 100644 --- a/src/text-field.jsx +++ b/src/text-field.jsx @@ -16,7 +16,7 @@ const ContextPure = require('./mixins/context-pure'); * @returns True if the string provided is valid, false otherwise. */ function isValid(value) { - return value || value === 0; + return Boolean(value || value === 0); } const TextField = React.createClass({