Skip to content

v4: When AutoSuggestBox resizes, it re-opens its dropdown🐛  #456

@pamtbaau

Description

@pamtbaau

Describe the bug
I have a Row that contains two widgets:

  • AutoSuggestBox inside an Expanded
  • TextBox inside an IntrinsicWidth

When a selection is made with AutoSuggestBox, in its onSelected event, the controller.text is set for the TextBox. Since the TextBox is inside an IntrinsicWidth, it resizes when the length of its content changes, which in turn causes a resize of the AutoSuggestBox.

When the resize of the AutoSuggestBox happens, it re-opens its dropdown.

This behaviour happens with version 4.0.0-pre.2 and not with version 3.

Note: This behaviour does not occur when the resize of the AutoSuggestBox happens due to a Button click. It only happens when the resize is caused during the onSelected event of the AutoSuggestBox.

To Reproduce
A reproducible case is available

Expected behavior
Like with v3 of fluent_ui, I expect the dropdown not to re-open when the AutoSuggestBox resizes.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions