Double notification and dialog service objects

I was looking at the HTML produced by my app and I noticed two instances of the same side dialog.

They both show and hide at the same time.

The notification service also shows up twice.

I only have one spot in my code where RadzenDialog and RadzenNotification show up, in my MainLayout.razor:

```

...
<RadzenComponents @rendermode="RenderMode.InteractiveServer" />
<RadzenDialog @rendermode="RenderMode.InteractiveServer" />
<RadzenNotification @rendermode="RenderMode.InteractiveServer" />
<RadzenTooltip @rendermode="RenderMode.InteractiveServer" />

What is the reason for this?

Hi @Petrov,

The reason for this is having both RadzenComponents and RadzenDialog. The former outputs the latter. You can remove everything but RadzenComponents - it outputs the rest by itself.

1 Like