Menu
Feedback
Start here

Known issues

Known issues
Disclosure Layout can't be used properly when prop animated is set as true
Store Framework
ID: 417947
No Fix
Published on4/19/2022
Last updated on7/1/2024
1 min read

Summary

There is an issue in disclosure layout that is only triggering the block to show, but it's not closing. This is caused by prop animated, that is not working properly when set in disclosure layout and doesn't allow to hide the element after opening.

Simulation

Go to any store using disclosure-layout with prop animated as true. Try to show and hide the element.

The content can't be hidden.

Workaround

Add the following handle in styles, this should avoid the issue in animation because the class is being changed:

.vtex-disclosure-layout-1-x-content--search-description-content--hidden {display: none;}

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback