Skip to content
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

ValueChanged never trigerred in FluentWizard #1534

Closed
ejalbertinfoej opened this issue Feb 18, 2024 · 1 comment · Fixed by #1538
Closed

ValueChanged never trigerred in FluentWizard #1534

ejalbertinfoej opened this issue Feb 18, 2024 · 1 comment · Fixed by #1538

Comments

@ejalbertinfoej
Copy link

ejalbertinfoej commented Feb 18, 2024

🐛 Bug Report

Using the sample demo code, we have this code:

<FluentWizard Id="customized-wizard"
              @bind-Value="@Value"
              StepTitleHiddenWhen="@GridItemHidden.XsAndDown"
              Height="300px">

and this in the code block:

@code
{
    int Value = 0;
}

when clicking 'Next' button in the wizard, the Value stays at 0. The ValueChanged callback method is never called.

💻 Repro or Code Sample

add this line over the FluentWizard:

@Value

🤔 Expected Behavior

The Value variable follow the step currently displayed

😯 Current Behavior

The Value variable is always 0 and never change.

Fix:

just add this code before line 183 in the Microsoft.FluentUI.AspNetCore.Components/Components/Wizard/FluentWizard.razor.cs

await ValueChanged.InvokeAsync(targetIndex);

I tried to create a pull request, but had no success with Git in my Visual Studio ! sorry!

@dvoituron
Copy link
Collaborator

Thanks for your work. I fixed this in this PR #1538 which will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants