Skip to content

[Bug Report] MMarkdown更新Class后,样式异常 #2392

Closed
@Yu-Core

Description

@Yu-Core

Masa.Blazor version

1.9.0

Hosting model

Blazor Hybird(MAUI/WPF/WinForm)

Describe the bug

vditor初始化后会给dom添加一个名为vditorclass
更新Class后,与vditor相关的样式就不会生效了

Image

Image

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code

<MMarkdown Class="@mMarkdownClass">
</MMarkdown>

<MButton OnClick="ClearClass">Clear Class</MButton>

@code{
    string? mMarkdownClass = "default";

    private void ClearClass()
    {
        mMarkdownClass = "";
    }
}

.NET version

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions