Skip to content

fix: Page not responding in combobox from a list of Option<T> items #3029

@danny-may

Description

@danny-may

🐛 Bug Report

If you enter a free text value into a combobox from a list of Option items the page will become unresponsive.

💻 Repro or Code Sample

On the demo site, change the text in the combobox to one that does not exist, and then click out of the combobox. The page will become unresponsive
https://www.fluentui-blazor.net/Combobox#fromalistofoptiontit
Image

🤔 Expected Behavior

The page should not become unresponsive. I guess that it should either accept the inputted value as plaintext or reset to the previous value?

😯 Current Behavior

The page becomes unresponsive and requires killing by the browser

💁 Possible Solution

My guess would be that it cannot find the option which matches the input and goes into some kind of infinite loop

🔦 Context

I was trying to find an autocomplete-like component which only allows a single selection and has an async search function. I was trying out the behaviour of a few other components to see if any other worked well for this.

🌍 Your Environment

  • OS & Device: Windows 11
  • Browser Firefox 133.0
  • .NET and Fluent UI Blazor library Version: No idea, whatever the demo site is using

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:blazorA Blazor-specific issuebugA bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions