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

checkbox group reacts to change in initial vlue #78

Closed
wants to merge 1 commit into from
Closed

checkbox group reacts to change in initial vlue #78

wants to merge 1 commit into from

Conversation

kandrelczyk
Copy link
Contributor

Hi,

I needed this functionality in my project (I'm reading the list of checked fields asynchronously so it changes after the list is already rendered). I know it's a bit hacky but I couldn't figure out another way to do it. What do you think? Can this be included or s there a better way to do it?

@luoxiaozero
Copy link
Collaborator

luoxiaozero commented Jan 12, 2024

This should be a bug, we just need to add trace to the value of group.

I fixed it in this branch. fix/checkbox-group-value

@kandrelczyk
Copy link
Contributor Author

That's what I was trying to do but I think I was creating cyclic dependency between checked and checkbox_group signals. Still have to get better at leptos... Thanks a lot for the fix!

@luoxiaozero
Copy link
Collaborator

Already merged, I will close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants