Change from `null` to `undefined` introduces issues with `<value> !== undefined`
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start with the TextField.tsx line linked in the issue, then follow the investigation in the linked comment and check Modal, Popover, Grid, and GridSpan, especially generateResponsiveCustomProperties. Review how each prop handles null and undefined, and decide whether defaulted props support null or need documentation. Done means resolving the listed checks and documenting the behavior decision.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This is caused by https://github.com/react-ui-org/react-ui/issues/662
As result of mentioned change, TextField is incorrectly setting hasRootSmallInput class when inputSize is set to null. This is happening on following line: https://github.com/react-ui-org/react-ui/blob/71b2fe1cd5719128ebdf3d17b90f4b441ebe199d/src/components/TextField/TextField.tsx#L38
Problem is that if inputSize is set to null:
const hasSmallInput = (inputSize !== undefined) && (inputSize <= SMALL_INPUT_SIZE);
Then hasSmallInput is true because of inputSize <= SMALL_INPUT_SIZE => true. Why? Because null <= 10 ...
We need to investigate this and examine all occurrences of !== undefined and !== null as well. This is why I always recommend using != null to cover both cases.
Scope
Investigated in https://github.com/react-ui-org/react-ui/issues/673#issuecomment-5998585636.
- Use
!= nullinTextField,ModalandPopover(caused by #662) - Use
prop == nullingenerateResponsiveCustomProperties(Grid,GridSpan) - Decide whether
nullis supported for props with defaults (Popoverplacement,tag, …), or document that onlyundefinedmeans "not set"
- Ngôn ngữ chính
- TypeScript
- Star
- 23
- Fork
- 10
- Merge trung bình
- 5 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không 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 react-ui-org/react-ui
-
maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
react-ui-org/react-ui#784 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
react-ui-org/react-ui#775 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update ESLint to version 10Đang mởmaintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
react-ui-org/react-ui#753 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Playwright container fails `devEngines` check again because its image does not pin Node.jsCó thể đã có người làm @bedrich-schindler đã nhận hôm nay. Đang mởbug maintenance
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 25/100
react-ui-org/react-ui#782 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Supported versionsĐang mởmaintenance
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
react-ui-org/react-ui#780 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của react-ui-org/react-ui
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
paperclipai/paperclip#19120 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Gradle liquibaseDiffChangelog drops jhi_date_time_wrapperCó thể đã có người làm @mraible đã nhận hôm nay. Đang mởarea: triage theme: undefined
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
jhipster/generator-jhipster#35998 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai:assign:coding feature p3 ui-ux windows
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
CherryHQ/cherry-studio#23569 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
lingdojo/kana-dojo#33602 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
GoogleCloudPlatform/BigQuery-Agent-Analytics-Plugins#16 ·
Maintainer thường phản hồi trong vòng 1 ngày