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
With keepMounted + AnimatePresence in (Framer) Motion, node.getAnimations() detects opacity transitions, but not transform:
This won't work, with the element unmounting instantly:
<motion.divexit={{x: '-100%'}}/>
This does however:
<motion.divexit={{x: '-100%',opacity: 0.9999}}/>
Possible solution
A new value for keepMounted, such as keepMounted="controlled", indicating the element's mounting is being controlled by another component like AnimatePresence. This will prevent hidden from being added, and remove the disabled prop from FocusManager.
The text was updated successfully, but these errors were encountered:
@vladmoroz makes all focus management inert with keepMounted=true. If another library is doing conditional rendering, then this is not necessary since it uses regular component mounting to enable/disable it.
With
keepMounted
+AnimatePresence
in (Framer) Motion,node.getAnimations()
detectsopacity
transitions, but nottransform
:This won't work, with the element unmounting instantly:
This does however:
Possible solution
A new value for
keepMounted
, such askeepMounted="controlled"
, indicating the element's mounting is being controlled by another component likeAnimatePresence
. This will preventhidden
from being added, and remove thedisabled
prop fromFocusManager
.The text was updated successfully, but these errors were encountered: