mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-20 16:49:03 +02:00
fix: page scrolls up on form submisssion
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user