From c1f8ec90d804be765a4450313136ff803fe4006e Mon Sep 17 00:00:00 2001 From: toshi1127 Date: Tue, 12 Mar 2019 21:35:30 +0900 Subject: [PATCH] fix change value --- addons/knobs/src/components/PropForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/knobs/src/components/PropForm.js b/addons/knobs/src/components/PropForm.js index 5cdb4312bc9f..a477f502fbf8 100644 --- a/addons/knobs/src/components/PropForm.js +++ b/addons/knobs/src/components/PropForm.js @@ -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); };