Skip to content

Fix ReconnectModal not showing "Rejoin failed. Trying again in Xs" message - #530

Merged
ScarletKuro merged 1 commit into
MudBlazor:devfrom
Laiter:fix/ReconnectModal-components-reconnect-retrying
Oct 16, 2026
Merged

ScarletKuro merged 1 commit into
MudBlazor:devfrom
Laiter:fix/ReconnectModal-components-reconnect-retrying

Conversation

@Laiter

@Laiter Laiter commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Problem

In ReconnectModal.razor, the message below never becomes visible during reconnection retries:

<p class="components-reconnect-repeated-attempt-visible components-reconnect-message">
    Rejoin failed. Trying again in <span id="components-seconds-to-next-attempt"></span>s.
</p>

The scoped CSS in ReconnectModal.razor.css shows this message only when the dialog has the class components-reconnect-repeated-attempt. Blazor never applies that class to the modal. During retries it applies components-reconnect-retrying. The display: block rules therefore never matched, and the message stayed hidden.

Fix

Replace the non-existent components-reconnect-repeated-attempt state class with components-reconnect-retrying in ReconnectModal.razor.css.

How to test

  1. Create a project from the MudBlazor template (Blazor Web App, Interactive Server).
  2. Run the app and open it in separate browser window.
  3. Stop the server so reconnection attempts start.
  4. Before: ReconnectModal doesn't show the "Rejoin failed. Trying again in Xs" message. before
    After: the message appears with the countdown. after

@github-actions github-actions Bot added the bug Something isn't working label Oct 16, 2026
@ScarletKuro
ScarletKuro merged commit 65fba9c into MudBlazor:dev Oct 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants