Skip to content

Dialogs get the hidden attribute when being closed #906

Answered by segunadebayo
innocenzi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @innocenzi,

We use hidden for most components because that's the framework-agnostic way of hiding elements.

You have two options here:

  • Explicitly set hidden={false} on the elements you want to remain visible and manage that attribute based on the transition timings.
  • Because of this scenario, we created a "presence" machine that tracks elements' animation state and applies the hidden attribute as needed.

Here's a reference to how to set up the presence component in [Zag.js] and [Ark UI]

I hope this helps you.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@innocenzi
Comment options

@segunadebayo
Comment options

@innocenzi
Comment options

Answer selected by segunadebayo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #904 on September 27, 2023 18:22.