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

Resizing an editable combobox triggers autocomplete #9833

Open
SlugFiller opened this issue Sep 1, 2023 · 5 comments
Open

Resizing an editable combobox triggers autocomplete #9833

SlugFiller opened this issue Sep 1, 2023 · 5 comments
Milestone

Comments

@SlugFiller
Copy link

.NET version

.NET SDK (reflecting any global.json):
Version: 6.0.413
Commit: 10710f7d8e

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win10-x64
Base Path: D:\Program Files\dotnet\sdk\6.0.413\

global.json file:
Not found

Host:
Version: 6.0.21
Architecture: x64
Commit: e40b3abf1b

.NET SDKs installed:
6.0.413 [D:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.21 [D:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.21 [D:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.21 [D:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Download .NET:
https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No response

Issue description

Changing the width of an editable ComboBox, while the text contains a prefix of one of its options, causes the text to be replaced with that option. The value of AutoCompleteMode has no influence on this.

combobox_bug.webm

Steps to reproduce

  • Create a combobox, setting anchors that cause it to resize with the window
  • Fill the combobox with options
  • Type in a text that is a prefix of one of the options
  • Resize the window

Minimal reproducible program:
combobox_bug_mrp.zip

@SlugFiller SlugFiller added the untriaged The team needs to look at this issue in the next triage label Sep 1, 2023
@elachlan
Copy link
Contributor

elachlan commented Sep 4, 2023

@Olina-Zhang could your team please test this?

@Olina-Zhang
Copy link
Member

Can repro this issue in .Net framework versions and .Net 6 to the latest .Net 8 RC2 build.

@JeremyKuhne JeremyKuhne added this to the Future milestone Sep 6, 2023
@JeremyKuhne
Copy link
Member

Interesting find, putting this on the backlog (as this occurs on Framework too) if someone gets a chance to look into it.

@JeremyKuhne JeremyKuhne removed the untriaged The team needs to look at this issue in the next triage label Sep 6, 2023
@elachlan
Copy link
Contributor

I had a similar issue in a devexpress control and it was the parent control calling invalidate that caused the autocomplete to trigger the value to be changed/selected. I imagine resizing a window would cause a similar thing to happen when anchored?

@jbennink
Copy link

Still happening with net9. I was actually testing something else and found this issue. It was easy to test in my repro and indeed this happens. I am working on my issue and hope to open a seperate issue on that soon :-|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants