-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
[Bug]: Accordion
/ Collapsible
components default open on SSR
#978
Comments
Maybe relevant, as I didn't want to open another issue: Same Accordion / Collapsible throws
I'd assume |
Thanks @teleskop150750 .. however I don't think that fixes the issue. @Cry0nicS it's not hydration issue. If you encountered hydration issue do check out #577 |
as far as I understand, the problem is in this code. First, the component is rendered with empty content. Then the parent component receives a link to "Presence". And only after that, if "present === true" the internal content is rendered |
I get the initial value synchronously |
Thanks @teleskop150750 . You are right with the condition to render the content, however the animation still would stutter in SSR. You can try to load the Animated Accordion in your Nuxt playground at the top of the page, and observe 😁 |
Fixed in |
Hello, this is marked as completed, but I am still getting this issue with radix-vue@1.9.12 Could you fix this for 1.9 pls? |
Environment
Link to minimal reproduction
https://www.radix-vue.com/components/accordion
Steps to reproduce
Reload the documentation to see the menu open on client only.
Describe the bug
When using an Accordion with a
default-value
or a Collapsible with adefault-open
prop, the content will only be opened on client and blink when refreshing the page.Expected behavior
No response
Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: