Skip to content

Commit

Permalink
fix(antd): return null while time field get falsy value (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
腰花 authored and janryWang committed Nov 5, 2019
1 parent 15ed246 commit 269a170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/antd/src/fields/time.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ registerFormField(
'time',
connect({
getValueFromEvent(_, value) {
return value
return value ? value : null
},
getProps: (props, fieldProps) => {
const { value, disabled = false } = props
Expand Down

0 comments on commit 269a170

Please sign in to comment.