Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
nicolaskruchten merged 1 commit into master from event_fixes
Feb 20, 2018
Merged

Conversation

Copy link
Contributor

@nicolaskruchten nicolaskruchten commented Feb 20, 2018

Fixes #42

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

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

@nicolaskruchten nicolaskruchten Feb 20, 2018

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

@nicolaskruchten nicolaskruchten Feb 20, 2018

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

Copy link
Contributor

VeraZab commented Feb 20, 2018

this looks good 💃

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@VeraZab VeraZab VeraZab approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /