소스 검색

link: clear `as` property if link has no href (#1272)

Masen Furer 1 년 전
부모
커밋
5d4f402987
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      reflex/components/navigation/link.py

+ 1 - 1
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)