Skip to content

Commit 7152b26

Browse files
authored
🐛 Prevent Termynal controls from scrolling (#2051)
1 parent 305e551 commit 7152b26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/js/termynal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Termynal {
133133
this.container.innerHTML = ''
134134
this.init()
135135
}
136-
restart.href = '#'
136+
restart.href = 'javascript:void(0)'
137137
restart.setAttribute('data-terminal-control', '')
138138
restart.innerHTML = "restart ↻"
139139
return restart
@@ -147,7 +147,7 @@ class Termynal {
147147
this.typeDelay = 0
148148
this.startDelay = 0
149149
}
150-
finish.href = '#'
150+
finish.href = 'javascript:void(0)'
151151
finish.setAttribute('data-terminal-control', '')
152152
finish.innerHTML = "fast →"
153153
this.finishElement = finish

0 commit comments

Comments
 (0)