From: Ashish Pandey <126683810+Ashish-Pandey62@users.noreply.github.com> Date: Sun, 31 Aug 2025 10:32:57 +0000 (+0545) Subject: 🐛 Prevent scroll-to-top on restart/fast buttons in `termynal.js` (#13714) X-Git-Tag: 0.116.2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1088d2abd908b7101ad7ea4ed0a5e141307d7693;p=thirdparty%2Ffastapi%2Ffastapi.git 🐛 Prevent scroll-to-top on restart/fast buttons in `termynal.js` (#13714) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- diff --git a/docs/en/docs/js/termynal.js b/docs/en/docs/js/termynal.js index 4ac32708a3..82d04e2d0b 100644 --- a/docs/en/docs/js/termynal.js +++ b/docs/en/docs/js/termynal.js @@ -133,7 +133,7 @@ class Termynal { this.container.innerHTML = '' this.init() } - restart.href = '#' + restart.href = "javascript:void(0)" restart.setAttribute('data-terminal-control', '') restart.innerHTML = "restart ↻" return restart @@ -147,7 +147,7 @@ class Termynal { this.typeDelay = 0 this.startDelay = 0 } - finish.href = '#' + finish.href = "javascript:void(0)" finish.setAttribute('data-terminal-control', '') finish.innerHTML = "fast →" this.finishElement = finish