question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`AutoCompleBox` drop-down cannot be reliably opened

See original GitHub issue

Describe 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

  1. Open the Avalonia Control Gallery and focus on an AutoCompleteBox with some items defined.
  2. Press the down arrow key
  3. Nothing happens
  4. Type a character that matches an item
  5. Cancel the pop-up
  6. Press the down arrow key
  7. The drop-down opens again
  8. Clear the box and type a character or string which doesn’t match any items
  9. Press the down arrow key
  10. 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
Philltoriancommented, Nov 30, 2022

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

0reactions
AtomCraftycommented, Jul 5, 2023

Yes, already on it 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found