Skip to content

Update Value for MatSlider from code doesn't work #661

Description

@stefanloerwald

Describe the bug

This is probably a similar issue to #658: Changing the value of a MatSlider from code doesn't update the slider.

To Reproduce

<MatBlazor.MatSlider @bind-Value="Value" ValueMin="0" ValueMax="100"></MatBlazor.MatSlider>
@Value

<MatBlazor.MatButton OnClick="() => Value = 20">Set to 20</MatBlazor.MatButton>
<MatBlazor.MatButton OnClick="() => Value = 80">Set to 80</MatBlazor.MatButton>

@code
{
    public double Value { get; set; }
}

Blazorfiddle link
https://blazorfiddle.com/s/z7dwpg27

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions