Skip to content

Commit

Permalink
Merge branch 'main' into cleanup-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r authored Oct 25, 2023
2 parents b297db0 + bdf8a07 commit a7f339a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fun Checkbox(
icons: CheckboxIcons = JewelTheme.checkboxStyle.icons,
textStyle: TextStyle = LocalTextStyle.current,
) {
val state by remember { mutableStateOf(ToggleableState(checked)) }
val state by remember(checked) { mutableStateOf(ToggleableState(checked)) }
CheckboxImpl(
state = state,
onClick = { onCheckedChange.invoke(!checked) },
Expand Down

0 comments on commit a7f339a

Please sign in to comment.