fix: OnSubmit is not called in FluentWizard

オープン
#5,489 コメント 5 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
C#
スター
4.9k
フォーク
497
平均マージ
1日 1時間
マージ済み PR(30日)
47

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/fluentui-blazor のほかの issue

microsoft/fluentui-blazor の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。