DateField documentation page crashes with undefined `ariaLabel` in EditableSegment
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
- 68/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ệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start with InputSegment.tsx and useDateSegment.ts, especially the EditableSegment destructuring and the hookData.get(...) call mentioned in the report. Reproduce the exception on the DateField documentation page and trace why that lookup returns undefined; the script-tag warning may be related, but the issue does not confirm that. Done when the page renders without the runtime exception.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
I encountered a runtime error while accessing the DateField documentation page.
Affected page:
https://keystar.design/package/date-time/date-field
Steps to reproduce
- Start the documentation project locally.
- Navigate to the DateField documentation page.
- Observe the browser console.
Actual behavior
The following warning appears:
Encountered a script tag while rendering React component.
Scripts inside React components are never executed when rendering on the client.
Consider using template tag instead.
This is followed by a runtime exception:
useDateSegment.ts:52
Uncaught TypeError:
Cannot destructure property 'ariaLabel' of
hookData.get(...) as it is undefined.
at EditableSegment (InputSegment.tsx:54:40)
Expected behavior
The DateField documentation page should render without runtime exceptions.
Additional information
- Reproduced locally.
- The exception originates in
EditableSegmentinInputSegment.tsx. - The
hookData.get(...)call inuseDateSegment.tsreturnsundefined, causing destructuring to fail. - The relationship between the script-tag warning and the runtime exception is not yet confirmed.
I would like to investigate and work on a fix if this issue is not already being addressed.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.5k
- Fork
- 181
- 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
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 Thinkmill/keystatic
-
Incorrect Dutch translations: “Save” is translated as “Redden”Có thể đã có người làm @MilindChatrabhuji đã nhận 13 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Typo/Grammar on Website HomepageCó thể đã có người làm @Punith1117 đã nhận 158 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Array field: no visible edit button on rows and no close button in the "Edit item" dialogCó thể đã có người làm @bacarndiaye đã nhận 19 ngày trước. Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 35/100
-
Feature: post-save "publishing" notice / `onCommit` hook so editors know changes aren't live yetĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Tất cả issue của Thinkmill/keystatic
Issue tương tự
-
FR: Support CJK brackets, symbols and full-width markers in footnoteHeuristics (EBPAJ support)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
readest/readest#7413 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
content triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
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 75/100
eliasstravik/herdr-projects#788 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Ability to edit tagsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày