Cell Context Menu not working in .net maui

when u create a .NET Maui Blazor app and try to use a CellContextMenu on a DataGrid. It does not work. u get the error 'WebViewNavigationManager' has not been initialized.

I figured out that the problem comes when u inject the ContextMenuService.

This is needed for ContextMenu to work properly: