Skip to content

Commit

Permalink
fix(module:tooltip): fix not undefined value not updated (#4392)
Browse files Browse the repository at this point in the history
* fix(module:tooltip): fix not undefined value not updated

* fix: typo

* fix: remove unused var
  • Loading branch information
Wendell authored and chensimeng committed Nov 8, 2019
1 parent dfa3d39 commit 2a71c43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tooltip/base/nz-tooltip-base.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
SimpleChanges,
ViewContainerRef
} from '@angular/core';
import { isNotNil, warnDeprecation, NgStyleInterface, NzNoAnimationDirective, NzTSType } from 'ng-zorro-antd/core';
import { warnDeprecation, NgStyleInterface, NzNoAnimationDirective, NzTSType } from 'ng-zorro-antd/core';
import { Subject } from 'rxjs';
import { distinctUntilChanged, takeUntil } from 'rxjs/operators';

Expand Down Expand Up @@ -331,7 +331,7 @@ export abstract class NzTooltipBaseDirective implements OnChanges, OnInit, OnDes

// tslint:disable-next-line no-any
private updateComponentValue(key: string, value: any): void {
if (isNotNil(value)) {
if (typeof value !== 'undefined') {
// @ts-ignore
this.tooltip[key] = value;
}
Expand Down

0 comments on commit 2a71c43

Please sign in to comment.