We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67667b4 commit 7ac1b2aCopy full SHA for 7ac1b2a
src/lib/Link/Link.svelte
@@ -103,10 +103,11 @@
103
);
104
105
function handleClick(event: MouseEvent & { currentTarget: EventTarget & HTMLAnchorElement }) {
106
+ incomingOnclick?.(event);
107
+ if (event.defaultPrevented) return;
108
event.preventDefault();
109
const newState = calculateState(resolvedHash, typeof state === 'function' ? state() : state);
110
location.goTo(calcHref, { state: newState, replace: calcReplace });
- incomingOnclick?.(event);
111
}
112
113
function styleString() {
0 commit comments