Repository navigation
fix: [checkbox] avoid a freeze when many boxes uncheck at once - #1035
Merged
Merged
Conversation
Base UI calls getAnimations() on each indicator that unchecks. While the indicator has a CSS transition, each call gets slower as more boxes uncheck, so deselecting all rows of a 1,000-row list blocked the page for about 40 seconds. The icon now fades in with a keyframe animation and the indicator has no transition. The icon leaves at once on uncheck, so the code that kept the old icon during the exit is gone.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
commit: |
…transition Base UI 1.9 renders an unnamed hidden input as 1px and position: fixed, and Chrome gives each one a compositor layer, so every repaint of a list with thousands of checkboxes spent most of its time in layerization. The input is now zero size unless it has a name or is required, as in mui/base-ui#6049. Checked and indeterminate boxes use border-style: none instead of border: none, so a toggle no longer starts four border-color transitions next to the background one.
rsbh
approved these changes
Dec 3, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
getAnimations()on each indicator that unchecks, and while the indicator has a CSS transition, each call gets slower as more boxes uncheck. In headless Chrome, deselect-all on a DataView list took 10 s at 500 rows and 42 s at 1,000 rows.position: fixed, and Chrome gives each one a compositor layer. The input is now zero size unless it has anameor isrequired, as in [form controls] Avoid a compositor layer per hidden input without a name mui/base-ui#6049. The override can go once Apsara uses a Base UI release with that fix.border-style: noneinstead ofborder: none, so a toggle starts one transition instead of five.