diff --git a/src/js/control-bar/time-controls/time-display.js b/src/js/control-bar/time-controls/time-display.js index c38a5a9c03..38c83f2edd 100644 --- a/src/js/control-bar/time-controls/time-display.js +++ b/src/js/control-bar/time-controls/time-display.js @@ -89,7 +89,7 @@ class TimeDisplay extends Component { let oldNode = this.textNode_; - if (oldNode && !this.contentEl_.contains(oldNode)) { + if (oldNode && this.contentEl_.firstChild !== oldNode) { oldNode = null; log.warn('TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.');