Skip to content

Commit

Permalink
refactor(month picker): clear some code #3126
Browse files Browse the repository at this point in the history
  • Loading branch information
SAndreeva committed Feb 20, 2019
1 parent ba93964 commit dc5ecf4
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,11 @@ export class IgxMonthPickerComponent extends IgxMonthPickerBase {
if (event.key === KEYS.RIGHT_ARROW || event.key === KEYS.RIGHT_ARROW_IE) {
event.preventDefault();
this.nextYear(true);

this._onChangeCallback(this.viewDate);
this.onSelection.emit(this.viewDate);
}

if (event.key === KEYS.LEFT_ARROW || event.key === KEYS.LEFT_ARROW_IE) {
event.preventDefault();
this.previousYear(true);

this._onChangeCallback(this.viewDate);
this.onSelection.emit(this.viewDate);
}
}

Expand Down Expand Up @@ -175,7 +169,7 @@ export class IgxMonthPickerComponent extends IgxMonthPickerBase {

this.onSelection.emit(this.viewDate);
}

/**
* Selects a date.
*```typescript
Expand Down

0 comments on commit dc5ecf4

Please sign in to comment.