Skip to content

Commit

Permalink
Refresh in radio test to set up selectedIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jan 6, 2024
1 parent d6bc1e2 commit ca10bbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions widget/radio_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func TestRadioGroup_Layout(t *testing.T) {
Options: tt.options,
Selected: tt.selected,
}
radio.Refresh() // set up selectedIndex
if tt.disabled {
radio.Disable()
}
Expand Down

0 comments on commit ca10bbe

Please sign in to comment.