Skip to content

Fix AutoCompleteBox not opening when the text box is empty #12057

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

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

AtomCrafty
Copy link
Contributor

What does the pull request do?

This PR removes an old workaround that mistakenly prevented the AutoCompleteBox dropdown from opening in certain scenarios. More context is provided here.

What is the current behavior?

Previously, an AutoCompleteBox with MinimumPrefixLength=0 would not open when the user pressed the down arrow key with no text in the text box.

What is the updated/expected behavior with this PR?

When pressing the down arrow key in an AutoCompleteBox with MinimumPrefixLength=0, the dropdown will now open as expected.

How was the solution implemented (if it's not obvious)?

I removed a check that was introduced as a workaround in #1570 in order to fix #1554. The underlying cause for #1554 appears to have been resolved since then, so the workaround is no longer needed.

Checklist

  • Added a unit test

Fixed issues

Fixes #8903

@AtomCrafty
Copy link
Contributor Author

@dotnet-policy-service agree

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0037416-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

Copy link
Member

@maxkatz6 maxkatz6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@maxkatz6 maxkatz6 added this pull request to the merge queue Jul 5, 2023
@maxkatz6 maxkatz6 added the bug label Jul 5, 2023
Merged via the queue into AvaloniaUI:master with commit c444b4b Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants