Open pmingkr opened 1 year ago
current my solution
var input = /* input for datepicker */;
var tuiDatePicker = new tui.DatePicker(/* args */)
input.addEventListener(
"change",
(ev) => {
if (input.value === '') {
tuiDatePicker.setNull();
}
},
true
);
Version
cdn latest
Development Environment
Windows, Chrome
Current Behavior
if the input is empty it returns to the previous value.
Expected Behavior
if the input is empty it becomes the null date. or has the option for it.