Skip to content

[Feature]: Removing overflow items without unmounting an overflow item component #29509

@lekoaf

Description

@lekoaf

Library

React Components / v9 (@fluentui/react-components)

System Info

System:
    OS: Linux 6.0 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 16.86 GB / 31.04 GB
    Container: Yes
    Shell: 5.8.1 - /bin/zsh
Browsers:
    Chrome: 116.0.5845.140

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/p/sandbox/youthful-aj-92tq3t

Bug Description

Actual Behavior

When removing items from an overflow menu, the menu bugs out with an empty menu.

If I had only used the buttons to remove the items, it works.
overflow_button

But when using the menu, it bugs out.
overflow

Expected Behavior

Overflow menu should dissapear when enough items have been removed.

Logs

No response

Requested priority

High

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions