Skip to content

Commit

Permalink
next: fix radio group onValueChange loop (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Nov 17, 2024
1 parent ad4980f commit 8effac0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-apples-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

fix: radio group onValueChange loop
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
value: box.with(
() => value,
(v) => {
if (v === value) return;
if (controlledValue) {
onValueChange(v);
} else {
Expand Down

0 comments on commit 8effac0

Please sign in to comment.