-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Conversation
@@ -135,32 +135,6 @@ describe('<Plotly/>', () => { | |||
.catch(err => done.fail(err)); | |||
}); | |||
|
|||
test('clear event handlers on newPlot', done => { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
this looks good 💃 |
Thanks! I'll do a release after I've eaten :) |
Fixes #42