fix handling of empty year input in explorer

pull/10066/head
Niklas Fiekas 2021-11-01 09:41:29 +01:00
parent e47c5874e6
commit b1c50cc8f3
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
});