Skip to content

Commit db63753

Browse files
fix: close details panel on link click in LibrariesLayout (#467)
Co-authored-by: Tanner Linsley <[email protected]>
1 parent f4346b7 commit db63753

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/_libraries/route.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export function LibrariesLayout({ children }: { children: React.ReactNode }) {
271271
return (
272272
<Link
273273
to={item.to}
274+
onClick={() => detailsRef.current.removeAttribute('open')}
274275
key={i}
275276
className={twMerge(linkClasses, 'font-normal')}
276277
activeProps={{

0 commit comments

Comments
 (0)