Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix animation bugs #321

Closed
wants to merge 1 commit into from
Closed

Conversation

petehunt
Copy link
Contributor

@petehunt petehunt commented Sep 6, 2013

There were a few bugs with ReactTransitionGroup related to CSS animation events; these are fixed.


function detectEvents() {
var testEl = document.createElement('div');
var style = testEl.style;
for (var styleName in EVENT_NAME_MAP) {
if (styleName in style) {
endEvents = EVENT_NAME_MAP[styleName];
return;
endEvents.push(EVENT_NAME_MAP[styleName]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're going to double listen in webkit. We should probably do these separately and stick with the early exit.

'transition' in testEl.style // true
'WebkitTransition' in testEl.style // true

@zpao
Copy link
Member

zpao commented Sep 7, 2013

Pete is fixing this internally, diff syncing out soon. Going to close out in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants