fix: OnSubmit is not called in FluentWizard

Aperta
#5,489 5 commenti 3 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
C#
Stelle
4.9k
Fork
497
Merge medio
1g 1h
PR unite (30g)
47

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/fluentui-blazor

Tutte le issue di microsoft/fluentui-blazor

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.