Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Allow initial value of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
yishai committed May 15, 2017
1 parent d80a25a commit 393907d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const DebounceInput = React.createClass({

getInitialState() {
return {
value: this.props.value || ''
value: this.props.value === undefined || this.props.value === null ? '' : `${this.props.value}`
};
},

Expand Down

0 comments on commit 393907d

Please sign in to comment.