fix(ivy): ensure falsy styling is not applied during creation mode (#26793)
PR Close #26793
This commit is contained in:
@ -147,11 +147,14 @@ renderComponent(AnimationWorldComponent, {playerHandler});
|
||||
function animateStyleFactory(keyframes: any[], duration: number, easing: string) {
|
||||
const limit = keyframes.length - 1;
|
||||
const finalKeyframe = keyframes[limit];
|
||||
return bindPlayerFactory((element: HTMLElement, type: number, values: {[key: string]: any}) => {
|
||||
const kf = keyframes.slice(0, limit);
|
||||
kf.push(values);
|
||||
return new WebAnimationsPlayer(element, keyframes, duration, easing);
|
||||
}, finalKeyframe);
|
||||
return bindPlayerFactory(
|
||||
(element: HTMLElement, type: number, values: {[key: string]: any},
|
||||
isFirstRender: boolean) => {
|
||||
const kf = keyframes.slice(0, limit);
|
||||
kf.push(values);
|
||||
return new WebAnimationsPlayer(element, keyframes, duration, easing);
|
||||
},
|
||||
finalKeyframe);
|
||||
}
|
||||
|
||||
class WebAnimationsPlayer implements Player {
|
||||
|
Reference in New Issue
Block a user