Community forum for knowledge and support

Updated 10 months ago

Closing other faq accordions when opening a new one

At a glance

Does anyone know if it's possible to close all other faq accordions when you open a new one (https://www.relume.io/preview?cid=faq-sections/section_faq4)?

B
J
M
8 comments

rebuild them using native webflow dropdown elements and then use the dropdown open/close trigger interaction

No other way? Why isn't it a dropdown to begin with?

I've seen people say its for accessibility but I am not entirely sure about that.

I have a quick video on how to do it using the existing classes as a starting point.
https://relume.notion.site/FAQs-199899de412c4498b838e824dfecbde8?pvs=4

Hi again , your solution is working, however the dropdown closes when you click anywhere else on the page. Is there a way to disable that behaviour?

Likely not, because that is the default behavior of a dropdown and is what makes the others close.

Could it be removed through code once I export it?

Add a reply
Sign up and join the conversation on Slack