From c2036dd3cf02451b1ed91487ddbbc31f952d2727 Mon Sep 17 00:00:00 2001 From: Alexander Streltsov Date: Wed, 28 Sep 2022 00:21:25 +0300 Subject: [PATCH] fix(Link): mergeProps shouldn't override user props --- src/link.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/link.tsx b/src/link.tsx index 2aab1fe..97f70ac 100644 --- a/src/link.tsx +++ b/src/link.tsx @@ -19,9 +19,7 @@ type Props = { } & Exclude, 'href'>; export function Link(props: Props) { - props = mergeProps(props, { - activeClass: 'active', - }); + props = mergeProps({activeClass: 'active'}, props); const toIsString = createMemo(() => typeof props.to === 'string');