diff --git a/src/Calendar.tsx b/src/Calendar.tsx index 6004ad8..d2251d7 100644 --- a/src/Calendar.tsx +++ b/src/Calendar.tsx @@ -164,11 +164,10 @@ export class Calendar extends React.Component { } monthChange(event: any) { - this.goToNormalized(this.props.year, event.target.value as Month); + this.goToNormalized(this.props.year, +event.target.value as Month); } yearChange(event: any) { - console.log(/^-?\d+/.test(event.target.value)); if (/^-?\d+/.test(event.target.value)) { this.goToNormalized(+event.target.value, this.props.month); }