mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-05 17:31:22 +02:00
Updated changelog + date field default value
This commit is contained in:
@@ -37,7 +37,11 @@ export const DateTimeField: React.FunctionComponent<IDateTimeFieldProps> = ({
|
||||
|
||||
const onDateChange = React.useCallback((date: Date) => {
|
||||
setDateValue(date);
|
||||
onChange(DateHelper.format(date, format || DEFAULT_FORMAT) || "");
|
||||
if (format) {
|
||||
onChange(DateHelper.format(date, format) || "");
|
||||
} else {
|
||||
onChange(date.toISOString());
|
||||
}
|
||||
}, [format, onChange]);
|
||||
|
||||
const showRequiredState = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user