Skip to content

Commit

Permalink
refactor(core|date-picker): init numbers with zero
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-ellington committed Oct 21, 2024
1 parent 9563e3f commit bb55b56
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/core/src/components/date-picker/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ export class DatePicker {
@State() currFromDate?: DateTime;
@State() currToDate?: DateTime;

@State() selectedYear!: number;
@State() tempYear!: number;
@State() startYear!: number;
@State() endYear!: number;
@State() selectedMonth!: number;
@State() tempMonth!: number;
@State() selectedYear = 0;
@State() tempYear = 0;
@State() startYear = 0;
@State() endYear = 0;
@State() selectedMonth = 0;
@State() tempMonth = 0;

private readonly dropdownButtonRef = makeRef<HTMLElement>();
private readonly yearContainerRef = makeRef<HTMLElement>();
Expand Down

0 comments on commit bb55b56

Please sign in to comment.