Skip to content

Commit

Permalink
fix: Related issue running-elephant#2145
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsut committed Sep 22, 2023
1 parent 26829bb commit 2e8ecdf
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 2e8ecdf

Please sign in to comment.