Skip to content

Commit

Permalink
fix(date-picker): Prevenitng redundant method calls on value. #3021
Browse files Browse the repository at this point in the history
  • Loading branch information
HristoP96 authored and HristoP96 committed Nov 19, 2018
1 parent ddf7802 commit 515214e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ export class IgxDatePickerComponent implements ControlValueAccessor, EditorProvi
* @hidden
*/
public handleSelection(date: Date) {
if (this.value !== null && this.value !== undefined) {
if (this.value !== null && this.value !== undefined && (this.value as any) !== '') {
date.setHours(this.value.getHours());
date.setMinutes(this.value.getMinutes());
date.setSeconds(this.value.getSeconds());
Expand Down

0 comments on commit 515214e

Please sign in to comment.