fix handling of empty year input in explorer
parent
e47c5874e6
commit
b1c50cc8f3
|
@ -246,7 +246,7 @@ const yearInput = (prop: StoredProp<Month>, after: () => Month, redraw: Redraw)
|
|||
input.setCustomValidity('');
|
||||
if (input.checkValidity()) {
|
||||
validateRange(input);
|
||||
prop(`${input.value}-${after() ? '12' : '01'}`);
|
||||
prop(input.value ? `${input.value}-${after() ? '12' : '01'}` : '');
|
||||
redraw();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue