Skip to content

[Bug]: Steps component is not showing correct selectedstep #6450

@RasmusCCHobby

Description

@RasmusCCHobby

Blazorise Version

2.0.2

What Blazorise provider are you running on?

Bootstrap5

Link to minimal reproduction or a simple code snippet

<Steps SelectedStep="step2" NavigationAllowed="(ctx) => Task.FromResult(false)">
    <Step Name="step1">1</Step>
    <Step Name="step2">2</Step>
    <Step Name="step3">3</Step>
    <Step Name="step4">4</Step>
</Steps>

Steps to reproduce & bug description

We're using the steps component to show like steps in a process. So we just want the visuals of the steps and we don't want navigation.
But it seems with the newest version of Blazorise this now no longer works. If we remove the NavigationAllowed that just stops navigation entirely then it works fine.

What is expected?

We would like for step2 to be shown as selected.

What is actually happening?

Currently with the above example code it shows as if nothing is selected.

What browsers do you see the problem on?

Microsoft Edge

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions