Skip to content

Commit c48d311

Browse files
committed
Update FireClicked call to include element parameter
Modified the lambda expression in the UIAction.Create method to pass the element parameter to item.FireClicked. This change ensures that the necessary context is provided for the FireClicked method, enhancing its functionality.
1 parent 4a1bb1c commit c48d311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/PJ.ContextActions.Sample/Platforms/iOS/MyCollectionViewHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static IEnumerable<UIMenuElement> CreateMenuItems(IEnumerable<MenuItem> items, B
7272
var action = UIAction.Create(item.Text ?? throw new NullReferenceException("Text can't be null!"),
7373
null,
7474
index.ToString(),
75-
_ => { item.FireClicked(); item.Command?.Execute(element); });
75+
_ => { item.FireClicked(element); item.Command?.Execute(element); });
7676
yield return action;
7777
}
7878
}

0 commit comments

Comments
 (0)