diff --git a/src/app/ui/edit-on-click/content-editable-on-click.directive.ts b/src/app/ui/edit-on-click/content-editable-on-click.directive.ts index f0f695f475..cd6a7c2d06 100644 --- a/src/app/ui/edit-on-click/content-editable-on-click.directive.ts +++ b/src/app/ui/edit-on-click/content-editable-on-click.directive.ts @@ -45,11 +45,16 @@ export class ContentEditableOnClickDirective implements OnInit, OnDestroy { window.clearTimeout(this._redrawTimeout); // this fixes the bug where the text is not visible for some time // by triggering a redraw via el.offsetHeight - this._redrawTimeout = window.setTimeout(() => this._el.offsetHeight, 30); + // this._redrawTimeout = window.setTimeout(() => this._el.offsetHeight, 30); }); el.addEventListener('input', (ev) => { this._setValueFromElement(); + + // this fixes the bug where the text is not visible for some time + // by triggering a redraw via el.offsetHeight + // tslint:disable-next-line + this._el.offsetHeight; }); el.addEventListener('blur', (ev) => {