Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Checkbox] Default Indicator to keepMounted=false #936

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Dec 2, 2024

Closes #896

@atomiks atomiks added the component: checkbox This is the name of the generic UI component, not the React module! label Dec 2, 2024
@mui-bot
Copy link

mui-bot commented Dec 2, 2024

Netlify deploy preview

https://deploy-preview-936--base-ui.netlify.app/

Generated by 🚫 dangerJS against 3e53662

@atomiks atomiks marked this pull request as ready for review December 3, 2024 21:17
Comment on lines +77 to +80
extraProps: {
hidden,
...otherProps,
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One consequence of hidden here is that you can't rely on the outer Root checkbox animation, because it looks for animations on the indicator itself: animatedElementRef: indicatorRef. So you need to duplicate styles to keep it mounted; hidden={false} of course can be used

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: checkbox This is the name of the generic UI component, not the React module! PR: out-of-date The pull request has merge conflicts and can't be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Checkbox] Unmount indicator
2 participants