fix: OnSubmit is not called in FluentWizard

Đang mở
#5,489 5 bình luận 3 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C#
Star
4.9k
Fork
497
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
47

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/fluentui-blazor

Tất cả issue của microsoft/fluentui-blazor

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.