Validation errors not showing up for type day
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
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu với bản tái hiện CodeSandbox được liên kết và tái hiện lỗi day-component bị thiếu trong quá trình nhập và gửi. Theo dõi cách hiển thị lỗi xác thực và việc áp dụng class của day-component, đồng thời so sánh với hành vi của textfield. Hoàn tất khi lỗi tùy chỉnh hiển thị trong cả hai luồng mà không cần workaround.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have a form with two components, one of type day, with day, month and year required, and one of type textfield, required. Both have a custom error message.
Both while typing and on submission, errors are not shown for the day component. I tried calling the submit function and I noticed the error is actually thrown. It seems like the library is not adding the correct class to the element in order for the error to be shown.
To Reproduce
Steps to reproduce the behavior:
- Go to repro: https://codesandbox.io/p/sandbox/modest-worker-mtztn2
- Click on "verify"
- See that error on day is not shown
- Click on "vertify with workaround"
- See that error on day is now shown thanks to the ugly workaround I implemented
Expected behavior
Errors on day component should be shown both while typing and on submit
Screenshots
Without workaround:
With workaround:
Desktop (please complete the following information):
- OS: Tested on Windows 10 and macOS 14.5
- Browser chromium based
- Version 127.0.6533.73
Additional context
The version of the libs in the repro are the exact ones I use in my project
- Ngôn ngữ chính
- TypeScript
- Star
- 371
- Fork
- 309
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của formio/react
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
onChange `modified` property remains false when file component is updatedCó thể làm lại được @ZenMasterJacob20011 đã nhận 293 ngày trước và không có pull request nào đang mở. Đang mở
-
FormBuilder onChange callback not triggered when options prop is providedCó thể làm lại được @Victoriya25 đã nhận 335 ngày trước và không có pull request nào đang mở. Đang mở
-
FormBuilder with OnChange broke textareaCó thể làm lại được @lane-formio đã nhận 307 ngày trước và không có pull request nào đang mở. Đang mở
Issue tương tự
-
bot:ai-assisted component:platform-js status:untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
midnightntwrk/platform-js#38 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ranxianglei/billion-context#7068 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ilan-pinto/roaring-lions#1552 ·
Maintainer thường phản hồi trong vòng 1 ngày