diff --git a/components/doc/knob/form/hookformdoc.js b/components/doc/knob/form/hookformdoc.js index 80443de9f8..c56c806c4e 100644 --- a/components/doc/knob/form/hookformdoc.js +++ b/components/doc/knob/form/hookformdoc.js @@ -42,11 +42,8 @@ export function HookFormDoc(props) { name="value" control={control} rules={{ required: 'The value must be greater than zero.' }} - render={({ field }) => ( - field.onChange(e.value)}/>)} - /> + render={({ field }) => field.onChange(e.value)} />} +/>