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
Typing a wrong value into an entry-field, which is bound to a variable will update the variable despite the entry's validator returning an error.
How to reproduce
The example offers two entry-field, each using the same validator.
The validator returns an error if the input is greater than 0.
The entry-fields use the same binding.
On input in any field the binding's Set method should only be called if the validation succeeds.
Currently the validator is seemingly only used to provide feedback to the user, while it could already prevent the propagation of a wrong value.
Checklist
Describe the bug
Typing a wrong value into an entry-field, which is bound to a variable will update the variable despite the entry's validator returning an error.
How to reproduce
The example offers two entry-field, each using the same validator.
The validator returns an error if the input is greater than 0.
The entry-fields use the same binding.
On input in any field the binding's
Set
method should only be called if the validation succeeds.Currently the validator is seemingly only used to provide feedback to the user, while it could already prevent the propagation of a wrong value.
Screenshots
No response
Example code
Fyne version
2.5.2
Go compiler version
1.23.2
Operating system and version
Linuxmint 22
Additional Information
somehow related:
#1849
#1704
The text was updated successfully, but these errors were encountered: