Skip to content

Commit

Permalink
Merge pull request #2246 from scottsut/dev
Browse files Browse the repository at this point in the history
fix: Related issue #2145
  • Loading branch information
scottsut authored Sep 22, 2023
2 parents 9a03230 + 2e8ecdf commit 511722e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export const DefaultValue = memo(

const datePickerConfirm = useCallback(
val => {
saveRegular(val);
if (val) {
saveRegular(val);
}
},
[saveRegular],
);
Expand Down Expand Up @@ -142,7 +144,7 @@ export const DefaultValue = memo(
format={TIME_FORMATTER}
className="input"
disabled={!!disabled}
onOk={datePickerConfirm}
onChange={datePickerConfirm}
showNow
showTime
/>
Expand Down

0 comments on commit 511722e

Please sign in to comment.