Radzen grid RowSelect on StateHasChanged (onClose dialog)

I have a dialog, where the caller has subscribed on the Close event.
When that happens, I call StateHasChanged();
Because of this, the RowSelect is called, while I do not expect this.
Is this expected behaviour?

OnInit
dialogService.OnOpen += Open;
dialogService.OnClose += Close;

Close subscriber
async void Close(dynamic result)
{
await InvokeAsync(() => { StateHasChanged(); });
}

Grid
<RadzenGrid @ref="FunctionsGrid" AllowFiltering="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
AllowPaging="true" PageSize="4" AllowSorting="true" Data="@Functions"
Value="@function" TItem="Data.Entities.Function" ColumnWidth="200px"
RowSelect="(args => RedirectToFunctionDetail(args.Id))">

Yes, the dialog is rendered usually as part of the page layout and this will trigger state change of the page also. In our demo <RadzenDialog /> is added to Shared\MainLayout.razor which is used for all pages.