Skip to content
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

[RadioGroup] Setting color does not work #1053

Closed
VladimirCores opened this issue Dec 2, 2023 · 4 comments · Fixed by #1065
Closed

[RadioGroup] Setting color does not work #1053

VladimirCores opened this issue Dec 2, 2023 · 4 comments · Fixed by #1065
Labels
bug Something isn't working

Comments

@VladimirCores
Copy link

Environment

Version

2.10.0

Reproduction

Try in on Nuxt UI documentation page: https://ui.nuxt.com/forms/radio-group#style

Description

image

Additional context

No response

Logs

No response

@VladimirCores VladimirCores added the bug Something isn't working label Dec 2, 2023
@metkm
Copy link

metkm commented Dec 2, 2023

The issue is here

const { emitFormChange, color, name } = useFormGroup({ ...props, isFieldset: true }, config)

Using the spread operator breaks the reactivity.

@metkm
Copy link

metkm commented Dec 2, 2023

#914 @romhml This issue is related to your pr. Since I can't think of a good solution I thought tagging you would be okay

@VladimirCores VladimirCores changed the title RadioGroup color does not work [RadioGroup] Setting color does not work Dec 3, 2023
@romhml
Copy link
Collaborator

romhml commented Dec 5, 2023

Thanks @metkm, I submitted a small fix, let me know what you think!

@metkm
Copy link

metkm commented Dec 5, 2023

Thanks @metkm, I submitted a small fix, let me know what you think!

Loving it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants