Open ThomasCode92 opened 2 months ago
This is a known bug that only affects the form dialog, related to the solution for https://github.com/fyne-io/fyne/issues/4147 apparently triggering some bug inside the .SetOnValidationChanged()
handling inside the form widget. I’ve looked into it but haven’t found the underlying reason that it happens. I think it is time to work around this issue until a real fix is in place.
PS: Please provide a simpler code example and not a snippet from another project, per the issue template. Example code should be as simple as possible and a single package main
file that can just be copied over and run directly by us maintainers.
Checklist
Describe the bug
In Fyne version 2.4.5, the dialog form validation behavior has changed compared to version 2.2.0. In version 2.2.0, the form remains invalid until all input fields are valid. However, in version 2.4.5, the form becomes valid if at least one input field is valid, which is not the expected behavior.
How to reproduce
dialog.NewForm
)Screenshots
Empty Dialog Form (version 2.4.5)
Valid Form, with one valid input (version 2.4.5)
Invalid Form, with on valid input (version 2.2.0)
Example code
The complete project can be found on my GitHub Page.
The function to create the Dialog Form, in
toolbar.go
:Fyne version
2.4.5
Go compiler version
1.22.4
Operating system and version
Ubuntu 22.04.4 LTS
Additional Information
No response