Skip to content

Commit b451f10

Browse files
ci: apply automated fixes
1 parent feb29b4 commit b451f10

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

e2e/solid-router/basic/tests/app.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ test('Link in SVG does not trigger a full page reload', async ({ page }) => {
6161
await page.waitForURL(url)
6262

6363
expect(fullPageLoad).toBeFalsy()
64-
})
64+
})

packages/solid-router/src/link.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export function useLinkProps<
284284
const elementTarget = (
285285
e.currentTarget as HTMLAnchorElement | SVGAElement
286286
).getAttribute('target')
287-
287+
288288
const effectiveTarget =
289289
local.target !== undefined ? local.target : elementTarget
290290

@@ -600,11 +600,7 @@ export const Link: LinkComponent<'a'> = (props) => {
600600
// Default rendering - just use regular anchor element
601601
// This works for HTML contexts; SVG links inside SVGs won't work properly
602602
// due to Solid's compile-time namespace determination
603-
return (
604-
<a {...(linkProps as any)}>
605-
{children()}
606-
</a>
607-
)
603+
return <a {...(linkProps as any)}>{children()}</a>
608604
}
609605

610606
function isCtrlEvent(e: MouseEvent) {

0 commit comments

Comments
 (0)