Skip to content

Commit 030318e

Browse files
authored
fix(module:watermark): removing the watermark fails to redraw (#8012)
1 parent 08d4640 commit 030318e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/water-mark/water-mark.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class NzWaterMarkComponent implements AfterViewInit, OnInit, OnChanges, O
6666
constructor(private el: ElementRef, @Inject(DOCUMENT) private document: Document, private cdr: ChangeDetectorRef) {}
6767

6868
ngOnInit(): void {
69-
this.observer.observe(this.waterMarkElement, {
69+
this.observer.observe(this.el.nativeElement, {
7070
subtree: true,
7171
childList: true,
7272
attributeFilter: ['style', 'class']

0 commit comments

Comments
 (0)