fix: OnSubmit is not called in FluentWizard

Abierto
#5,489 5 comentarios 3 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
C#
Estrellas
4.9k
Forks
497
Merge medio
1 d 1 h
PR fusionados (30 d)
47

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/fluentui-blazor

Todos los issues de microsoft/fluentui-blazor

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.