Skip to content

Commit

Permalink
Don't assume we own the validation
Browse files Browse the repository at this point in the history
Fixes #1890
  • Loading branch information
andydotxyz committed Feb 4, 2021
1 parent 4aac2eb commit 4763025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widget/entry.go
Expand Up @@ -131,7 +131,7 @@ func (e *Entry) Bind(data binding.String) {
val, err := data.Get()
if err != nil {
convertErr = err
e.SetValidationError(err)
e.SetValidationError(e.Validate())
return
}
e.Text = val
Expand All @@ -145,7 +145,7 @@ func (e *Entry) Bind(data binding.String) {

e.OnChanged = func(s string) {
convertErr = data.Set(s)
e.SetValidationError(convertErr)
e.SetValidationError(e.Validate())
}
}

Expand Down

0 comments on commit 4763025

Please sign in to comment.