Skip to content
New issue

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

Last character doesn't appear in Select when there is a special character #4293

Closed
2 tasks done
GaetanBaert opened this issue Oct 1, 2023 · 5 comments
Closed
2 tasks done
Labels
unverified A bug that has been reported but not verified

Comments

@GaetanBaert
Copy link

Checklist

  • 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

The last character of the option selected doesn't appear in widget.Select when the option selected contains a specific character like "à", "é"...

How to reproduce

I include a small piece of code to reproduce the bug.

Screenshots

bug_report

Example code

package main

import (
	"log"

	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("Test")
	w.Resize(fyne.NewSize(640, 480))
	options := []string{"Here is à test", "This is a test"}
	sel := widget.NewSelect(options, func(v string) {
		log.Println(v)
	})
	w.SetContent(sel)
	w.ShowAndRun()
}

Fyne version

v2.4.0

Go compiler version

1.21.0

Operating system and version

Windows 11

Additional Information

No response

@GaetanBaert GaetanBaert added the unverified A bug that has been reported but not verified label Oct 1, 2023
@andydotxyz
Copy link
Member

andydotxyz commented Oct 1, 2023

Please can you try the fix at #4286 - I think this may be the same root cause.

@GaetanBaert
Copy link
Author

I'm sorry, I'm quite new to Go

How can I try the fix ? I need to clone the branch and call it from local ?

@andydotxyz
Copy link
Member

Globe the repo with git and change to the right branch (GitHub shows instructions on the PR).
Then add a "replace" directive in go.mod to show your project to use a file location for fyne.io/fyne/v2 instead.

@GaetanBaert
Copy link
Author

I tried, and I confirm the fix at #4286 solves the issue. Thank you !

@andydotxyz andydotxyz added this to the D fixes (v2.4.x) milestone Oct 2, 2023
@andydotxyz
Copy link
Member

Excellent :) we should have that in a release in the coming days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants