diff --git a/public/app/features/explore/Logs/Logs.tsx b/public/app/features/explore/Logs/Logs.tsx index 2cf73968220..d79e51dd445 100644 --- a/public/app/features/explore/Logs/Logs.tsx +++ b/public/app/features/explore/Logs/Logs.tsx @@ -454,7 +454,18 @@ class UnthemedLogs extends PureComponent { return { from: firstTimeStamp, to: lastTimeStamp }; }); - scrollToTopLogs = () => this.topLogsRef.current?.scrollIntoView(); + scrollToTopLogs = () => { + if (config.featureToggles.exploreScrollableLogsContainer) { + if (this.logsContainer.current) { + this.logsContainer.current.scroll({ + behavior: 'auto', + top: 0, + }); + } + } else { + this.topLogsRef.current?.scrollIntoView(); + } + }; render() { const {