diff --git a/ts/WoltLabSuite/Core/Date/Picker.ts b/ts/WoltLabSuite/Core/Date/Picker.ts index 213ace06d89..107ee687f0a 100644 --- a/ts/WoltLabSuite/Core/Date/Picker.ts +++ b/ts/WoltLabSuite/Core/Date/Picker.ts @@ -951,6 +951,7 @@ const DatePicker = { const data = _data.get(element) as DatePickerData; element.dataset.value = date.getTime().toString(); + element.dataset.empty = "false"; let format = ""; let value: string; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js index caa9a0b78e7..bd4a30c5f68 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js @@ -799,6 +799,7 @@ define(["require", "exports", "tslib", "../Core", "./Util", "../Event/Handler", element = getElement(element); const data = _data.get(element); element.dataset.value = date.getTime().toString(); + element.dataset.empty = "false"; let format = ""; let value; if (data.isDateTime) {