-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Elements with Transition not in DOM until show is true #44
Comments
The same is true for when I have not found a solution for this other than in my case defining a couple of hidden inputs outside of the transition. You could also consider defining the same content elsewhere and hide it manually. Perhaps not the most beautiful solution, but it'll do for now. |
Hey! Thank you for your bug report! Both scenarios are true because we unmount the whole tree. I am going to experiment with an idea to make it stay in the DOM. I'll keep you posted! |
+1 |
@RobinMalfait can you share what you have in mind? This is pretty critical so I'd like to give it a shot if you don't have the bandwidth at the moment. |
Hi, do you think you'll have time over the next couple of days for this one? I'd love to jump in and work on it. Can you point me in the right direction with the ideas you had? |
@jorgeramos Hey! I'm working on this the next couple of days. I will get back to this very shortly! |
Hey! Small update: This should be working in the next version we publish. Usage:Put an The default value of <Transition unmount={false} />
<Transition.Child unmount={false} /> |
@RobinMalfait thanks for working on this. Do you have an expected date for the next release? |
I'm working on an app that is using Transition for opening the modal menu used for navigation. The menu opens and closes as desired, however, the markup is not visible on the DOM unless it is open. This is problematic for SEO as that content would not be visible to the search engine crawlers. How can I make the component behave visually just as it is now, but just toggle the visibility so that the markup is always there?
You can see the behavior in the example app: https://b6xje.csb.app/
The text was updated successfully, but these errors were encountered: