You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When options are added to an existing widget.RadioGroup that was previously disabled using (w *DisableableWidget) Disable(), the options are added in the styling for enabled elements.
Thus with a black text and icon instead of grey ones.
They also show the hover effect and are highlighted when clicked, but the option cannot actually be selected.
To Reproduce:
Steps to reproduce the behaviour: (see code below)
Create RadioGroup with some elements
Disable the RadioGroup
Append Options to the RadioGroup
See error, additional options are shown in black instead of grey
Screenshots:
Before, correctly shown as disabled:
Appended option is not shown as disabled:
Example code:
Full reproducer:
package main
import (
"fyne.io/fyne/app""fyne.io/fyne/container""fyne.io/fyne/widget"
)
funcmain() {
application:=app.New()
w:=application.NewWindow("test")
radioGroup:=widget.NewRadioGroup([]string{"one", "two"}, func(string) {})
radioGroup.SetSelected("one")
radioGroup.Disable()
button:=widget.NewButton("Append three", func() {
radioGroup.Append("three") // this option is then shown enabledradioGroup.Disable() // even disabling the group again does not help too
})
c:=container.NewVBox(radioGroup, button)
w.SetContent(c)
w.ShowAndRun()
}
Describe the bug:
When options are added to an existing
widget.RadioGroup
that was previously disabled using(w *DisableableWidget) Disable()
, the options are added in the styling for enabled elements.Thus with a black text and icon instead of grey ones.
They also show the hover effect and are highlighted when clicked, but the option cannot actually be selected.
To Reproduce:
Steps to reproduce the behaviour: (see code below)
Screenshots:
Example code:
Full reproducer:
Device:
h1:vh5P0ZIpczIAUu3uqh8YPjAPOy2XzgK7DcBD3CHj+3k=
The text was updated successfully, but these errors were encountered: