Skip to content

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

Closed
@GaetanBaert

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    unverifiedA bug that has been reported but not verified

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions