From 06b1cc4bca54f8b9a2d205d7cf194fb0caa79a81 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 21 Nov 2023 11:49:34 +0000 Subject: [PATCH] Scrollable widget: Fix crash in CI --- core/modules/widgets/scrollable.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modules/widgets/scrollable.js b/core/modules/widgets/scrollable.js index c95820ef3..58597461b 100644 --- a/core/modules/widgets/scrollable.js +++ b/core/modules/widgets/scrollable.js @@ -191,6 +191,10 @@ ScrollableWidget.prototype.render = function(parent,nextSibling) { }; ScrollableWidget.prototype.updateScrollPositionFromBoundTiddler = function() { + // Bail if we're running on the fakedom + if(!this.outerDomNode.scrollTo) { + return; + } var tiddler = this.wiki.getTiddler(this.scrollableBind); if(tiddler) { var scrollLeftTo = this.outerDomNode.scrollLeft;