mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(animations): update wapi polyfill
Do not clear out all inline styles after the web animation api polypfill has finished.
This commit is contained in:
@ -31,9 +31,16 @@
|
||||
scope.apply(target, interpolation.property, interpolation.interpolation(scaledLocalTime));
|
||||
});
|
||||
} else {
|
||||
for (var property in propertySpecificKeyframeGroups)
|
||||
if (property != 'offset' && property != 'easing' && property != 'composite')
|
||||
scope.clear(target, property);
|
||||
|
||||
// IONIC HACK!
|
||||
// DO NOT CLEAR OUT THE INLINE STYLE HERE
|
||||
// IONIC ANIMATE SETS INLINE STYLES ITSELF AND THE WEB ANIMATIONS API WILL
|
||||
// OVERWRITE IONIC DUE TO THE ASYNC PROMISES THAT FIRE OFF AFTER ONFINISH
|
||||
|
||||
// for (var property in propertySpecificKeyframeGroups)
|
||||
// if (property != 'offset' && property != 'easing' && property != 'composite')
|
||||
// scope.clear(target, property);
|
||||
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user