Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Upgrade Base UI to 1.9.0

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

Maintainer thường phản hồi trong vòng 6 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
30/100
Loại issue
Tái cấu trúc
Độ 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 by bumping @base-ui/react and @base-ui/utils in package.json, then check the listed components for breakage. Read menu/menu-content.tsx and context-menu/context-menu-content.tsx for the onItemHighlighted handlers, and look at the wrapper types for Combobox and Select. Done means the upgrade builds, the tests pass after any ScrollArea role updates, and disabled triggers look right. The issue says to wait until the open Base UI PRs merge first.

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

Mô tả

Base UI 1.9.0 is out (release notes). It lists no breaking changes. It needs @base-ui/utils 0.5.0.

Do this after the open Base UI PRs merge (#946, #948 to #961, #963), so the upgrade does not conflict with them.

Upgrade PR

  • Bump @base-ui/react to ~1.9.0 and @base-ui/utils to ~0.5.0.
  • Accordion and Collapsible triggers now get the native disabled attribute. Our .accordion-trigger:disabled and .trigger:disabled styles did not apply before and will apply now. Check that disabled triggers look right.
  • Autocomplete passes the originating event to onItemHighlighted, and typing reports the reason none. Check our handlers in menu/menu-content.tsx and context-menu/context-menu-content.tsx.
  • Combobox and Select accept readonly arrays for multiple values. Let our wrapper types accept readonly string[] too.
  • ScrollArea drops the viewport role. Update any tests that rely on it.

Follow-ups (separate PRs)

  • Menu filtering: Menu.FilterProvider, Menu.Input, and onItemHighlighted (preview). Our searchable Menu and ContextMenu combine Base UI Autocomplete with Menu. Moving to Base UI's own menu filtering could simplify both, and the item counter in #962. Wait until it leaves preview, or try it on a branch first.
  • eventDetails.preventUnmountOnClose() for Select, Combobox, and Autocomplete keeps the popup mounted after it closes. It could make the hidden registration pass in Select lighter. It does not cover the first open, so the pass is still needed.
  • Use the new CssVariables and DataAttributes type exports in the docs props.ts files.

Fixes that help open PRs

  • Combobox: stale chip focus after returning to the input (#954).
  • Drawer: virtual keyboard spacing, iOS focus, swipe velocity, and x/y options for data-base-ui-swipe-ignore (#956).
  • Item registration stays in sync under Strict Mode, and large lists mount faster (Select and Combobox).
Ngôn ngữ chính
TypeScript
Star
69
Fork
13
Merge trung bình
4 ngày 14 giờ
Pull request đã merge (30 ngày)
34

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 raystack/apsara

Tất cả issue của raystack/apsara

Issue tương tự

Thêm issue về TypeScript

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.