We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pasting text into a MultiLineEntry with custom validation won't enable the submit button
No response
package main import ( "errors" "fmt" "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/widget" ) func main() { w := app.New().NewWindow("test") w.Resize(fyne.NewSize(500, 100)) txt := widget.NewMultiLineEntry() txt.Validator = func(s string) error { if s == "" { return errors.New("empty") } return nil } form := &widget.Form{ OnSubmit: func() { fmt.Println("OnSubmit") }, } form.Append("txt", txt) w.SetContent(form) w.ShowAndRun() }
fyne.io/fyne/v2 v2.5.0
go1.22.5 darwin/arm64
macOS 14.5, windows 10
I was able to fix it with this workaround:
txt.OnChanged = func(s string) { _ = txt.Validate() }
The text was updated successfully, but these errors were encountered:
Ah yes, it seems paste is not triggering the change events
Sorry, something went wrong.
Duplicate of #5058.
No branches or pull requests
Checklist
Describe the bug
Pasting text into a MultiLineEntry with custom validation won't enable the submit button
How to reproduce
Screenshots
No response
Example code
Fyne version
fyne.io/fyne/v2 v2.5.0
Go compiler version
go1.22.5 darwin/arm64
Operating system and version
macOS 14.5, windows 10
Additional Information
I was able to fix it with this workaround:
The text was updated successfully, but these errors were encountered: