From fb88e5d652b67522027cb121a4e846dfc7da92bb Mon Sep 17 00:00:00 2001 From: Nicolas Gotchac Date: Mon, 27 Mar 2017 17:56:08 +0200 Subject: [PATCH] Fix booleans in Typedinput (#5295) * Register new playground component onMount * No need of observer * getValue returns falsy values * Fix tests --- js/src/ui/Form/TypedInput/typedInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/ui/Form/TypedInput/typedInput.js b/js/src/ui/Form/TypedInput/typedInput.js index a6a84ad21..c3462a020 100644 --- a/js/src/ui/Form/TypedInput/typedInput.js +++ b/js/src/ui/Form/TypedInput/typedInput.js @@ -469,7 +469,7 @@ export default class TypedInput extends Component { * { value: Object, type: String } */ getValue (value = this.props.value) { - return value && value.value + return value && value.value !== undefined ? value.value : value; }