]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
🐛 Prevent Termynal controls from scrolling (#2051)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 22 Jul 2026 13:10:11 +0000 (15:10 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 13:10:11 +0000 (15:10 +0200)
docs/js/termynal.js

index 45bb371c83d293b6208057063afb6fab75def904..db71f65a5c7abbace5e254c96fd72043468b63a2 100644 (file)
@@ -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