-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anchor's span prop does not work #4695
Comments
But I see that you need to declare "component" as a key. Please share the link. |
@jishat, I'm not sure I understood. When you set the
The link to the documentation is: https://mantine.dev/core/anchor/?t=props
The link to the codesandbox is: https://codesandbox.io/s/naughty-star-m98lv5?file=/src/App.tsx |
Yes, you are right. It is a bug. |
I will can fix it. I am working on it |
Fixed in 6.0.20, |
What package has an issue
@mantine/core
Describe the bug
Using the
span
prop on anAnchor
as in<Anchor span>
has no effect. The resulting component is still an<a>
.Contrast this to setting the component explicitly,
<Anchor component="span">
, which does behave correctly.Based on the documentation, I would expect that setting
span
orcomponent="span"
would behave the same.What version of @mantine/hooks page do you have in package.json?
6.0.19
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/s/naughty-star-m98lv5?file=/src/App.tsx
Do you know how to fix the issue
None
Are you willing to participate in fixing this issue and create a pull request with the fix
None
Possible fix
No response
The text was updated successfully, but these errors were encountered: