From f861a7c160a0b3be76a16c5bf2ea1a8d076a9662 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 16 Nov 2023 03:31:18 +0000
Subject: [PATCH] fix: regression where clicking anchors on the same page wouldn't set the anchor in the url
---
quartz/components/MobileOnly.tsx | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/quartz/components/MobileOnly.tsx b/quartz/components/MobileOnly.tsx
index b75fd76..5a19095 100644
--- a/quartz/components/MobileOnly.tsx
+++ b/quartz/components/MobileOnly.tsx
@@ -4,9 +4,7 @@
if (component) {
const Component = component
function MobileOnly(props: QuartzComponentProps) {
- return <div class="mobile-only">
- <Component {...props} />
- </div>
+ return <Component displayClass="mobile-only" {...props} />
}
MobileOnly.displayName = component.displayName
--
Gitblit v1.10.0