fix: OnSubmit is not called in FluentWizard

Open
#5,489 5 comments 3 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
frontend

Research direction

Start by reading the FluentWizard and EditForm integration, then use the attached FluentWizardTest.zip reproduction to trace what happens when Next is pressed in step 1. Confirm whether EditForm's OnSubmit callback runs and compare that with validation in step 2; done means OnSubmit is called on Next so custom validation can control EditContext.Validate.

Written by the indexing model from the issue text.

Description

status:needs-investigation v5

🐛 Bug Report

When using a FluentWizard in FluentUI v5, the OnSubmit method of the EditForm component is never called.

💻 Repro or Code Sample

  1. Open the attached project and run it
  2. Try to fill in "Invalid" into the Name field
  3. In step 1 the wizard continues (using OnSubmit)
  4. In step 2 the wizard actually validates the input (using OnValidationRequested)

FluentWizardTest.zip

🤔 Expected Behavior

OnSubmit should be called when pressing next in the first step so I can more easily add custom validation and have control over the EditContext.Validate method

😯 Current Behavior

The EventCallback linked to OnSubmit is never called.

💁 Possible Solution

🔦 Context

I'm trying to update my Blazor portal from FluentUI v4 to v5

🌍 Your Environment

  • OS & Device: Windows on PC
  • Browser: Microsoft Edge
  • .NET and Fluent UI Blazor library Version 10.0.401 & 5.0.1
Dominant language
C#
Stars
4.9k
Forks
497
Avg merge
1d 1h
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/fluentui-blazor

All issues in microsoft/fluentui-blazor

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.