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:
parent
f5bce0cd9e
commit
fb88e5d652
@ -469,7 +469,7 @@ export default class TypedInput extends Component {
|
|||||||
* { value: Object, type: String }
|
* { value: Object, type: String }
|
||||||
*/
|
*/
|
||||||
getValue (value = this.props.value) {
|
getValue (value = this.props.value) {
|
||||||
return value && value.value
|
return value && value.value !== undefined
|
||||||
? value.value
|
? value.value
|
||||||
: value;
|
: value;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user