Skip to content

Commit

Permalink
Merge pull request #6043 from toshi1127/feature/fix__props-form
Browse files Browse the repository at this point in the history
[bug]Error message when removing value from number knob
  • Loading branch information
shilman authored Mar 12, 2019
2 parents 08eab42 + c1f8ec9 commit 2ac8ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/knobs/src/components/PropForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class PropForm extends Component {
makeChangeHandler(name, type) {
const { onFieldChange } = this.props;
return value => {
const change = { name, type, value };
const change = { name, type, value: value || '' };

onFieldChange(change);
};
Expand Down

0 comments on commit 2ac8ae6

Please sign in to comment.