`AutoCompleBox` drop-down cannot be reliably opened
See original GitHub issueDescribe the bug
Opening the drop-down of AutoCompleteBox
is unreliable and mysterious, for both users and control consumers. Behaviour is particularly confusing when MinimumPrefixLength
is 0.
To Reproduce
- Open the Avalonia Control Gallery and focus on an
AutoCompleteBox
with some items defined. - Press the down arrow key
- Nothing happens
- Type a character that matches an item
- Cancel the pop-up
- Press the down arrow key
- The drop-down opens again
- Clear the box and type a character or string which doesn’t match any items
- Press the down arrow key
- Nothing happens.
Expected behavior The autocomplete drop-down should open whenever the down key is pressed, or at least some feedback should be given as to why it did not open.
This bug also means that the drop-down cannot be opened from the outside unless certain pre-conditions that the control decides on are met. I expect setting the IsDropDownOpen
to always open the drop-down.
Desktop (please complete the following information):
- OS: Windows
- Version 11 preview 1
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:12 (10 by maintainers)
Top Results From Across the Web
WPF Toolkit AutoCompleteBox dropdown doesn't appear
In my WPF application, I have a UserControl that has two AutoCompleteBox controls in it. This UserControl can appear multiple times on a...
Read more >NeoVim coc.nvim enter key doesn't work to autocomplete
When I'm using coc.nvim for autocompletion and I select something, hit enter, NeoVim makes a new line and doesn't autocomplete.
Read more >AutoCompleteBox to remain with open dropdown to allow ...
Configure the AutoCompleteBox imitate the behavior of the Kendo UI MultiSelect widget by allowing the selection of multiple items without closing the dropdown...
Read more >Clearing Your AutoComplete List and Updating the Global ...
In the new message, click the To... button · Type the person's name and select it from the GAL (Global Address List). The...
Read more >Making a Better Custom Select Element
We want a way for someone to choose an item from a list of options, but it's more complicated than just that. We...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ran into the same issue a while back, I managed to get the desired effect (arrow down and F4 opens the dropdown when blank) by using the attached behaviour.
AutoCompleteZeroMinimumPrefixLengthDropdownBehaviour.cs.txt
Yes, already on it 👍