You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following (full reduced test case here) where we attempt to define an enter/exit transition for a popover child element:
import{DialogTrigger,Button,Popover,Dialog}from'react-aria-components';exportdefaultfunctionApp(){return(<DialogTrigger><Button>Open popover</Button><Popoverplacement="bottom right"><Dialog><divclassName="content">This is a popover.</div></Dialog></Popover></DialogTrigger>);}
As for the exit transition, it seems that React Aria only listens/waits for transitionend events on the popover root element, not its children. This is problematic because we need to transition children for certain effects: #5195
I'm not sure how we'd detect this automatically. We just look to see if the popover element has a transition applied using element.getAnimations(), but this would require traversing the DOM to find all child elements as well. Can you apply a transition on something like visibility to the popover itself as well and match up the durations?
Provide a general summary of the issue here
Given the following (full reduced test case here) where we attempt to define an enter/exit transition for a popover child element:
🤔 Expected Behavior?
I would expect the enter/exit transition to work.
😯 Current Behavior
The enter/exit transition does not work.
💁 Possible Solution
I was able to get the enter transition to work with the following change, but I do not understand why:
As for the exit transition, it seems that React Aria only listens/waits for
transitionend
events on the popover root element, not its children. This is problematic because we need to transition children for certain effects: #5195🔦 Context
No response
🖥️ Steps to Reproduce
https://stackblitz.com/edit/vitejs-vite-vrzdb1dm?file=src%2Fmain.css,src%2FApp.tsx&terminal=dev
Version
1.8.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macOS
🧢 Your Company/Team
Unsplash
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: