Skip to content

⬆️ chore(deps): upgrade @base-ui/react to 1.8.0 - #644

Merged
Innei merged 1 commit into
masterfrom
chore/upgrade-base-ui-1.8
Sep 8, 2026
Merged

Innei merged 1 commit into
masterfrom
chore/upgrade-base-ui-1.8

Conversation

@Innei

@Innei Innei commented Sep 8, 2026

Copy link
Copy Markdown
Member

Why

@base-ui/react has been pinned to 1.6.0 since a78cdf6. Two things blocked the bump:

  1. 1.7.0 removed store from the public PopoverHandle / TooltipHandle typings (moved into BasePopupHandle, still present at runtime). PopoverGroup and TooltipGroup read handle.store directly, which is what broke type-check on the renovate PR Update dependency @base-ui/react to v1.8.0 - autoclosed #601.
  2. 1.7.0 regressed hover handoff between detached triggers wrapping antd Buttons ([popover] Hover handoff between detached triggers sharing a handle silently drops the popup (regression in 1.7.0) mui/base-ui#5416). Fixed upstream in [popover] Fix detached trigger store migration mui/base-ui#5442, first shipped in 1.8.0.

What

  • Bump @base-ui/react 1.6.0 → 1.8.0.
  • Add usePopupHandleStore(handle) in src/utils/destroyOnInvalidActiveTriggerElement.ts: subscribes to the handle's subscribeStore via useSyncExternalStore and returns the current store. This is not just a typing workaround: since 1.7 a Root attaches its store in an effect, so handle.store at render time is an inert fallback. Capturing it once would leave open permanently false and silently disable the destroy-on-invalid-trigger and zero-origin guards. This mirrors base-ui's own internal usePopupHandleStore used by detached triggers.
  • PopoverGroup / TooltipGroup consume the hook instead of handle.store.

Verification

  • pnpm type-check: baseline on 1.6.0 had 0 errors; after the bump only the 4 handle.store TS2339 errors appeared; 0 after the fix.
  • pnpm vitest run: 173 files / 1353 tests pass.
  • Browser (docs dev server):

Supersedes #601.

https://claude.ai/code/session_01M6WjoVy32S48WjQnMsFDuB

1.7.0 removed `store` from the public handle typings and made Root attach
its store in an effect, so PopoverGroup/TooltipGroup now follow the live
store through `subscribeStore` instead of capturing `handle.store` once.

1.7.0 also regressed hover handoff between detached triggers wrapping
antd Buttons (mui/base-ui#5416); the fix (mui/base-ui#5442) shipped in 1.8.0.

Claude-Session: https://claude.ai/code/session_01M6WjoVy32S48WjQnMsFDuB
@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lobe-ui Building Building Preview Sep 8, 2026 3:59pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T16:03:14.601682Z 7a114dd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Innei
Innei merged commit ca25fd6 into master Sep 8, 2026
3 of 4 checks passed
@Innei
Innei deleted the chore/upgrade-base-ui-1.8 branch September 8, 2026 16:18
github-actions Bot pushed a commit that referenced this pull request Sep 8, 2026
## [5.40.2](v5.40.1...v5.40.2) (2026-09-08)

### 🎫 Chores

* **deps**: Upgrade @base-ui/react to 1.8.0, closes [#644](#644) [mui/base-ui#5442](mui/base-ui#5442) ([ca25fd6](ca25fd6))
* **release**: [email protected] [skip ci] ([930f623](930f623))

### 🐛 Bug Fixes

* **code-editor**: Align highlight layer with textarea layout, closes [#643](#643) ([384b444](384b444))

This branch was successfully deployed

1 active deployment
Preview — 7a114dd2 Deployed Sep 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant