We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ab4d19 + dfa9216 commit 780d9a5Copy full SHA for 780d9a5
1 file changed
src/text-field.jsx
@@ -16,7 +16,7 @@ const ContextPure = require('./mixins/context-pure');
16
* @returns True if the string provided is valid, false otherwise.
17
*/
18
function isValid(value) {
19
- return value || value === 0;
+ return Boolean(value || value === 0);
20
}
21
22
const TextField = React.createClass({
0 commit comments