[ADF-4405] [ADF-4423] Fix clipboard directive on json cell (#4643)

* [ADF-4405] [ADF-4423] Fix clipboard directive on json cell

* [ADF-4405] Fix unit tests

* [ADF-4405] Fix e2e test
This commit is contained in:
Eugenio Romano
2019-04-25 19:49:38 +01:00
committed by GitHub
parent 37f52a139e
commit f94eb5872a
5 changed files with 10 additions and 9 deletions

View File

@@ -49,9 +49,11 @@ export class ClipboardDirective {
@HostListener('mouseenter')
showTooltip() {
const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent);
const componentRef = this.viewContainerRef.createComponent(componentFactory).instance;
componentRef.placeholder = this.placeholder;
if (this.placeholder) {
const componentFactory = this.resolver.resolveComponentFactory(ClipboardComponent);
const componentRef = this.viewContainerRef.createComponent(componentFactory).instance;
componentRef.placeholder = this.placeholder;
}
}
@HostListener('mouseleave')