Skip to content

Commit

Permalink
fix(date-picker): Fixed spinning only when the editor is focused #3034
Browse files Browse the repository at this point in the history
  • Loading branch information
sboykova committed Feb 26, 2019
1 parent 3bb621d commit edc4196
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1008,11 +1008,12 @@ export class IgxDatePickerComponent implements IDatePicker, ControlValueAccessor
* @hidden
*/
public onWheel(event) {
event.preventDefault();
event.stopPropagation();
const sign = (event.deltaY > 0) ? -1 : 1;
this.spinValue(event.target.value, sign, event.type);

if (this._isInEditMode) {
event.preventDefault();
event.stopPropagation();
const sign = (event.deltaY > 0) ? -1 : 1;
this.spinValue(event.target.value, sign, event.type);
}
}

/**
Expand Down

0 comments on commit edc4196

Please sign in to comment.