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
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 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
Create a form with multiple input fields. (dialog.NewForm)
Set up validation for each field.
Run the application using Fyne version 2.4.5.
Observe that the form is marked as valid if at least one input field is valid.
Jacalz
changed the title
Validation bug: Form becomes valid if one input field is valid
Form dialog validation becomes valid if one input field is valid
Jul 18, 2024
This is a known bug that only affects the form dialog, related to the solution for #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
The text was updated successfully, but these errors were encountered: