remove RAF in transitionend

This commit is contained in:
Seth Trowbridge 2023-05-30 10:17:22 -04:00
parent 03653601d8
commit cfdad61058

View File

@ -121,7 +121,6 @@ const useAway =(inRef:React.Ref<HTMLElement>, handleAway:Handler)=>
, []);
};
type StyleSize = [classes:string, width:number, height:number];
type StylePack = Record<string, string>;
type StyleCalc = Record<string, StyleSize>;
@ -170,13 +169,10 @@ export function Collapser(inElement:HTMLElement, initialState:string, library:Re
anim(userMode, userDone);
}
else
{
frameRequest = requestAnimationFrame(()=>
{
inElement.setAttribute("style", "");
inTransition = false;
userDone(userMode);
});
}
}
}