Skip to content

Commit

Permalink
fix(time-picker): Do not assign null or undefined to innerValue
Browse files Browse the repository at this point in the history
  • Loading branch information
chloe463 committed Mar 22, 2018
1 parent 99e03b6 commit 93b514f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/forms/time-picker/time-picker.component.ts
Expand Up @@ -100,14 +100,14 @@ export class FrTimePickerComponent implements OnInit, AfterViewInit, ControlValu
}

set value(obj: any) {
if (obj !== this._innerValue || obj !== null || obj !== undefined) {
if (obj !== this._innerValue && obj !== null && obj !== undefined) {
this._innerValue = obj;
this._onChangeCallback(obj);
}
}

writeValue(obj: any): void {
if (obj !== this._innerValue || obj !== null || obj !== undefined) {
if (obj !== this._innerValue && obj !== null && obj !== undefined) {
this._innerValue = obj;
}
}
Expand Down

0 comments on commit 93b514f

Please sign in to comment.