-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
[Bug]: MenuLabel
rendered as <label>
, should be <div>
#482
Comments
Let me know if that's a bug, or made intentional. |
Nice catch @madebyfabian ! Let me do some test quickly.. I forgot if it was intentional. Edit: Yes let's change that to |
PR in #486. I also updated it in docs. Checked if there where anything in the tests at |
Should I do the same for the |
You are right about that too @madebyfabian. However, I realized the Let's change these |
@zernonia I think But with Radix, the |
Environment
Link to minimal reproduction
https://github.com/radix-vue/radix-vue/blob/main/packages/radix-vue/src/Menu/MenuLabel.vue#L11
Steps to reproduce
Use the
DropdownMenuLabel
component in any project.Describe the bug
I discovered that the
DropdownMenuLabel
uses theMenuLabel
component, which renders as<label>
. While the react radix renders it as a div.radix-vue:
https://github.com/radix-vue/radix-vue/blob/main/packages/radix-vue/src/Menu/MenuLabel.vue#L11
radix:
https://github.com/radix-ui/primitives/blob/main/packages/react/menu/src/Menu.tsx#L594
Expected behavior
Expect to have the same html tag rendered for the same component.
Conext & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: