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

Data bound entry text replacing selection is ignored #3340

Closed
2 tasks done
andydotxyz opened this issue Oct 18, 2022 · 0 comments
Closed
2 tasks done

Data bound entry text replacing selection is ignored #3340

andydotxyz opened this issue Oct 18, 2022 · 0 comments
Labels
blocker Items that would block a forthcoming release bug Something isn't working

Comments

@andydotxyz
Copy link
Member

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

a data bound entry will not correctly replace selected text with new input

How to reproduce

  • Go to a NewEntryWithData
  • Add some text
  • Select a few characters
  • Type another
  • See that the selected text is removed, but the new text does not get added

Screenshots

No response

Example code

e := NewEntryWithData(data)
test.Type(e, "My content")
// select "con"
test.Type(e, "d")
assert.Equal(t, "My dtent", e.Text)

Fyne version

2.2+

Go compiler version

1.18

Operating system

macOS

Operating system version

Big Sur

Additional Information

No response

@andydotxyz andydotxyz added unverified A bug that has been reported but not verified bug Something isn't working blocker Items that would block a forthcoming release and removed unverified A bug that has been reported but not verified labels Oct 18, 2022
andydotxyz added a commit to andydotxyz/fyne that referenced this issue Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Items that would block a forthcoming release bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant