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 b831804 commit 49fd9be
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 || this.props.value === 0 ? this.props.value : ''
};
},

Expand Down

0 comments on commit 49fd9be

Please sign in to comment.