Skip to content

AutoCompleteBox: After selecting an item and typing again, dropdown closes and textbox loses focus (with AsyncPopulator) #19299

@Bondarenko1990

Description

@Bondarenko1990

Describe the bug

When using AutoCompleteBox with AsyncPopulator, after selecting an item from the dropdown, if the user types again in the textbox, the dropdown closes and the textbox loses focus. This interrupts the user experience, as the user must manually refocus the textbox to continue typing.

To Reproduce

  1. Use an AutoCompleteBox with AsyncPopulator assigned.
  2. Type text to trigger suggestions.
  3. Select an item from the dropdown.
  4. Type again in the textbox.
  5. Observe: The dropdown closes and the textbox loses focus.

Uploading bug-demo.mp4

Expected behavior

After selecting an item and typing again, the textbox should retain focus and the dropdown should remain open (if there are matching items).

Avalonia version

11.3.2

OS

Windows

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions