Skip to content

Commit

Permalink
fix change value
Browse files Browse the repository at this point in the history
  • Loading branch information
toshi1127 committed Mar 12, 2019
1 parent cf96e88 commit c1f8ec9
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 c1f8ec9

Please sign in to comment.