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

Disabled RadioGroup does not display status #3882

Closed
2 tasks done
xelarion opened this issue May 11, 2023 · 1 comment
Closed
2 tasks done

Disabled RadioGroup does not display status #3882

xelarion opened this issue May 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@xelarion
Copy link

xelarion commented May 11, 2023

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

In version 2.3.4, the radio group item does not display the selected status correctly when radio group is disabled.

How to reproduce

  1. SetSelected
  2. Disable radio group

Screenshots

20230511150408

Example code

package main

import (
	"fmt"

	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("Hello")

	normalGroup := widget.NewRadioGroup([]string{"A", "B", "C"}, func(string) {})
	normalGroup.SetSelected("A")

	disabledGroup := widget.NewRadioGroup([]string{"A", "B", "C"}, func(string) {})
	disabledGroup.SetSelected("A")

	// disable
	disabledGroup.Disable()

	w.SetContent(container.NewVBox(
		normalGroup,
		widget.NewLabel(fmt.Sprintf("normalGroup selected: %s", normalGroup.Selected)),
		disabledGroup,
		widget.NewLabel(fmt.Sprintf("disabledGroup selected: %s", disabledGroup.Selected)),
	))

	w.ShowAndRun()
}

Fyne version

2.3.4

Go compiler version

1.19.2

Operating system and version

macOs Monterey

Additional Information

No response

@xelarion xelarion added the unverified A bug that has been reported but not verified label May 11, 2023
@Jacalz Jacalz changed the title radio group item does not display the selected status correctly when radio group is disabled Disabled RadioGroup does not display status May 11, 2023
@Jacalz Jacalz added bug Something isn't working and removed unverified A bug that has been reported but not verified labels May 11, 2023
@Jacalz Jacalz added this to the Fixes (v2.3.x) milestone May 11, 2023
andydotxyz added a commit to andydotxyz/fyne that referenced this issue May 24, 2023
@andydotxyz
Copy link
Member

Fixed on develop and release/v2.3.x ready for v2.3.5

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

No branches or pull requests

3 participants