Skip to content

fix: Selected item(s) being retained after being removed from FluentDataGrid #3948

@garrenf

Description

@garrenf

🐛 Bug Report

Removing a selected item from FluentDataGrid retains that item in the selected items.

💻 Repro or Code Sample

FluentUITest.zip

  1. Select an item in the grid.
  2. Take note of the selected item at the bottom.
  3. Click remove to remove the selected item.
  4. Selected item persists even though it was removed.

🤔 Expected Behavior

I think it's fair to expect that the selected item that was removed from the grid to no longer be selected since it doesn't even exist anymore.

😯 Current Behavior

The removed item persists in the SelectedItems binding after being removed.

🔦 Context

In my example, I would like to disable the remove button if no items are selected. Since the removed items still counts as being selected, I am unable to do so.

🌍 Your Environment

Windows 11, Microsoft Edge.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions