1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-03-23 16:35:07 +00:00

fix: page scrolls up on form submisssion

This commit is contained in:
Elias Schneider
2025-06-03 21:12:21 +02:00
parent 04fcf1110e
commit 31ad904367
13 changed files with 33 additions and 27 deletions

View File

@@ -0,0 +1,6 @@
export function preventDefault(fn: (event: Event) => void): (event: Event) => void {
return function (this: unknown, event) {
event.preventDefault();
fn.call(this, event);
};
}