Skip to content

Commit 3fdb0dd

Browse files
authored
Fixed issue where sub items in the context menu would not get filtered (#4393)
1 parent 594452d commit 3fdb0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Files/Helpers/ContextFlyoutItemHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseContextCommands(NamedP
4444
public static List<ContextMenuFlyoutItemViewModel> Filter(List<ContextMenuFlyoutItemViewModel> items, List<ListedItem> selectedItems, bool shiftPressed, CurrentInstanceViewModel currentInstanceViewModel)
4545
{
4646
items = items.Where(x => Check(item: x, currentInstanceViewModel: currentInstanceViewModel, selectedItems: selectedItems, shiftPressed: shiftPressed)).ToList();
47-
items.ForEach(x => x.Items = x.Items.Where(y => Check(item: x, currentInstanceViewModel: currentInstanceViewModel, selectedItems: selectedItems, shiftPressed: shiftPressed)).ToList());
47+
items.ForEach(x => x.Items = x.Items.Where(y => Check(item: y, currentInstanceViewModel: currentInstanceViewModel, selectedItems: selectedItems, shiftPressed: shiftPressed)).ToList());
4848
var overflow = items.Where(x => x.ID == "ItemOverflow").FirstOrDefault();
4949
if(overflow != null && !shiftPressed)
5050
{

0 commit comments

Comments
 (0)