mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Prevent scrolling to pretend link
Also remove the hash as it was ugly and served no purpose.
This commit is contained in:
parent
17d9161e18
commit
5dd5b620a8
1 changed files with 2 additions and 2 deletions
|
@ -65,9 +65,9 @@ export function show() {
|
|||
* Known issue: currently scrolls the page to the bottom.
|
||||
*/
|
||||
const a = window.document.createElement("A")
|
||||
; (a as any).href = "#"
|
||||
; (a as any).href = ""
|
||||
document.body.appendChild(a)
|
||||
a.focus()
|
||||
a.focus({preventScroll: true})
|
||||
document.body.removeChild(a)
|
||||
|
||||
const height =
|
||||
|
|
Loading…
Add table
Reference in a new issue