crism
This commit is contained in:
@@ -31,7 +31,8 @@ const DatePickerComponent: FC<Props> = (props: Props) => {
|
||||
const formattedDate = `${value.year}/${value.month.number}/${value.day}`;
|
||||
props.onChange(formattedDate);
|
||||
}
|
||||
}, [props, value]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [value]);
|
||||
|
||||
useEffect(() => {
|
||||
if (props.defaulValue && !value) {
|
||||
|
||||
Reference in New Issue
Block a user