Skip to content

Commit

Permalink
fix(field): defaultValue
Browse files Browse the repository at this point in the history
  • Loading branch information
webyom committed Sep 1, 2020
1 parent 2b1ae28 commit 393e1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class Field<T = never> extends preact.Component<FieldProps<T>, FieldState

if (isInputType) {
const inputProps = {
value: value + '',
value: isDef(value) ? value + '' : '',
class: bem('control', inputAlign),
name: name,
disabled: props.disabled,
Expand Down

0 comments on commit 393e1da

Please sign in to comment.