Fix booleans in Typedinput (#5295)

* Register new playground component onMount

* No need of observer

* getValue returns falsy values

* Fix tests
This commit is contained in:
Nicolas Gotchac 2017-03-27 17:56:08 +02:00 committed by Jaco Greeff
parent f5bce0cd9e
commit fb88e5d652

View File

@ -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;
}