-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Checkbox] Default Indicator
to keepMounted=false
#936
Conversation
Netlify deploy preview |
extraProps: { | ||
hidden, | ||
...otherProps, | ||
}, |
There was a problem hiding this comment.
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
Signed-off-by: atomiks <[email protected]>
Signed-off-by: atomiks <[email protected]>
export const transitionStatusMapping = { | ||
transitionStatus(value): Record<string, string> | null { | ||
if (value === 'starting') { | ||
return { 'data-starting-style': '' }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: you could create the const object beforehand and reuse it in each call.
Closes #896