Join the Webstudio community

Updated 2 months ago

Radix Accordion Breaks When a Value is Added

At a glance

The community member was experimenting with the radix accordion component and encountered an issue where the component stopped working after they added and then deleted a value in the value field. Other community members suggested that the value property should be provided with a specific value, and that the default value should be used instead. They also shared a link to a project where the same issue was occurring, and a community member suggested that dragging the accordion items from the broken one to a working one could help resolve the issue without needing to rebuild the entire component.

Useful resources
I was messing with the radix accordion component, to see what could make it open by default. I put a value in the value field and deleted it, but the component is not working now. Anyone experience this?
Attachment
Screenshot_20241202-182304.png
J
A
8 comments
You're changing the attached. I think you need to provide it with a value of what you want... but even so I'd just use default value
Attachment
image.png
So now it doesn't open when clicked, even with or without value. I was wondering if I could fix it or just start over
Hm Im confused. Value is there by default. Can you share a link with view permissions ?
Attachment
image.png
This is with build permission I was trying to replicate the same problem with my original project
Hm odd. So I guess if you add a value and there is already a value property, some logic breaks with it. You can drag the accordion items in the broken one to the working one and that should help so you dont need to rebuild it
Okay thank you John
Add a reply
Sign up and join the conversation on Discord