ng-pick-datetime
Advanced tools
Comparing version 6.0.14 to 6.0.15
@@ -421,3 +421,4 @@ import { Directive, ElementRef, EventEmitter, forwardRef, HostBinding, HostListener, Inject, Input, Optional, Output, Renderer2 } from '@angular/core'; | ||
result = this.getValidDate(result); | ||
if (!this.isSameValue(result, this._value)) { | ||
if (!this.isSameValue(result, this._value) || | ||
result === null) { | ||
this._value = result; | ||
@@ -437,4 +438,4 @@ this.valueChange.emit(result); | ||
result = this.getValidDate(result); | ||
if ((this._selectMode === 'rangeFrom' && this.isSameValue(result, this._values[0])) || | ||
(this._selectMode === 'rangeTo' && this.isSameValue(result, this._values[1]))) { | ||
if ((this._selectMode === 'rangeFrom' && this.isSameValue(result, this._values[0]) && result) || | ||
(this._selectMode === 'rangeTo' && this.isSameValue(result, this._values[1])) && result) { | ||
return; | ||
@@ -460,3 +461,5 @@ } | ||
to = this.getValidDate(to); | ||
if (!this.isSameValue(from, this._values[0]) || !this.isSameValue(to, this._values[1])) { | ||
if (!this.isSameValue(from, this._values[0]) || | ||
!this.isSameValue(to, this._values[1]) || | ||
(from === null && to === null)) { | ||
this._values = [from, to]; | ||
@@ -463,0 +466,0 @@ this.valueChange.emit(this._values); |
{ | ||
"name": "ng-pick-datetime", | ||
"version": "6.0.14", | ||
"version": "6.0.15", | ||
"description": "Angular Date Time Picker", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
644205
6948