Skip to content

various fixes for event addition/removal #44

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

Merged
merged 1 commit into from
Feb 20, 2018
Merged

Conversation

nicolaskruchten
Copy link
Contributor

Fixes #42

@@ -135,32 +135,6 @@ describe('<Plotly/>', () => {
.catch(err => done.fail(err));
});

test('clear event handlers on newPlot', done => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test was way too implementation-specific and now depends on the Plotly.js version.

config: nextProps.config,
frames: nextProps.frames,
});
}
})
.then(() => this.syncEventHandlers(nextProps))
.then(() => this.syncWindowResize(nextProps))
.then(this.attachUpdateEvents)
.then(() => {
if (!hasReactAPIMethod) this.attachUpdateEvents();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the main fix

@VeraZab
Copy link
Contributor

VeraZab commented Feb 20, 2018

this looks good 💃

@nicolaskruchten
Copy link
Contributor Author

Thanks! I'll do a release after I've eaten :)

@nicolaskruchten nicolaskruchten merged commit 513bd6f into master Feb 20, 2018
@nicolaskruchten nicolaskruchten deleted the event_fixes branch February 20, 2018 17:47
@nicolaskruchten nicolaskruchten restored the event_fixes branch May 2, 2018 17:03
@nicolaskruchten nicolaskruchten deleted the event_fixes branch May 2, 2018 17:03
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.

2 participants