From e97ee485ef263219e6a5beaf325911da79d781bc Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Wed, 27 Feb 2019 10:25:19 +0100 Subject: [PATCH] Visual Console Client: minor fixes Former-commit-id: 62a0a7f33c65a0d9a2ee3be9cb15613d6664a06f --- visual_console/src/VisualConsoleItem.ts | 2 +- visual_console/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/visual_console/src/VisualConsoleItem.ts b/visual_console/src/VisualConsoleItem.ts index 2554159878..5a631c744d 100644 --- a/visual_console/src/VisualConsoleItem.ts +++ b/visual_console/src/VisualConsoleItem.ts @@ -224,7 +224,7 @@ abstract class VisualConsoleItem { this.elementRef.style.height = `${this.props.height}px`; } - this.childElementRef.replaceWith(this.createDomElement()); + this.childElementRef.innerHTML = this.createDomElement().innerHTML; } /** diff --git a/visual_console/src/index.ts b/visual_console/src/index.ts index 46b3dbb99b..517bde4c8e 100644 --- a/visual_console/src/index.ts +++ b/visual_console/src/index.ts @@ -84,7 +84,7 @@ if (container != null) { const digitalClockRawProps = { // Generic props. - id: 2, + id: 3, type: 19, // clock = 19 label: null, isLinkEnabled: false,