From 5d4f402987c68806081774f8bffa1964f6c3850c Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Thu, 29 Jun 2023 18:45:34 -0700 Subject: [PATCH] link: clear `as` property if link has no href (#1272) --- reflex/components/navigation/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/components/navigation/link.py b/reflex/components/navigation/link.py index 56774e616..0bea74ba8 100644 --- a/reflex/components/navigation/link.py +++ b/reflex/components/navigation/link.py @@ -51,7 +51,7 @@ class Link(ChakraComponent): raise ValueError("Link without a child will not display") elif href is None and len(children): # Don't use a NextLink if there is no href. - props["as_"] = "Link" + props["as_"] = "" if href: props["href"] = href return super().create(*children, **props)