Skip to content

Commit 8077fff

Browse files
committed
fix(solid-router): remove delete linkProps.disabled
1 parent ff4af36 commit 8077fff

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/solid-router/src/link.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,6 @@ export const Link: LinkComponent<'a'> = (props: any) => {
540540
})
541541
: rest.children
542542

543-
if (typeof local._asChild === 'undefined') {
544-
// the Retlocal.urnType of useLinkProps returns the correct type for a <a> element, not a general component that has a disabled prop
545-
// @ts-expect-error
546-
delete linkProps.disabled
547-
}
548-
549543
return (
550544
<Dynamic component={local._asChild ? local._asChild : 'a'} {...linkProps}>
551545
{children}

0 commit comments

Comments
 (0)