-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After a cascading value changes, MudMarkDown is failing to update the corresponding value. #166
Comments
Could you please provide a code block (or a sample solution) of what you want to achieve and what does not work with the current version? To force re-rendering you might try to call |
I attempted to use StateHasChanged() but unfortunately, it did not refresh the MudMarkdown component. However, If Here is a sample of my backEnd:
And here is my frontEnd:
|
Sorry for a late reply. Could you post a complete solutiuon with your expected behaviour (github repo will do)? Otherwise I do not really understand what you are trying to accomplish. <MudButton OnClick="OnClick">Refresh</MudButton>
<MudMarkdown
Value="@Value"
Styling="Styling"
TableCellMinWidth="100"
OverrideLinkUrl="OverrideLink"
OverrideHeaderTypo="OverrideHeaderTypo"
CodeBlockTheme="CodeBlockTheme.DraculaBase16" />
@code
{
void OnClick()
{
Value += Environment.NewLine + Value;
StateHasChanged();
}
protected override async Task OnInitializedAsync()
{
Value = "**aaa** bbb _aaa_";
}
} |
Hello, Is there a way to trigger a re-render of the MudMarkdown component when a cascading value is updated?
The text was updated successfully, but these errors were encountered: