mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Fix empty text
This commit is contained in:
@@ -41,6 +41,9 @@ export class RaphaelTextDirective extends RaphaelBase implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
console.log(this.elementRef);
|
||||
if (this.text === null || this.text === undefined) {
|
||||
this.text = '';
|
||||
}
|
||||
this.draw(this.position, this.text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user