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 editor refs #1183

Merged
merged 2 commits into from May 10, 2018
Merged

Fix editor refs #1183

merged 2 commits into from May 10, 2018

Conversation

JamesPortelli
Copy link
Contributor

Fixed an issue whereby incorrect binding of functions was causing editor commits to throw an undefined error.

Copy link
Contributor

@amanmahajan7 amanmahajan7 left a comment

Choose a reason for hiding this comment

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

Just a minor comment

@@ -7,16 +7,20 @@ import React, { Component } from 'react';
// to the required methods.
module.exports = (ContainerEditor) => {
return class ContainerEditorWrapper extends Component {
getInputNode() {
getInputNode = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not need this change, getValue and getInputNode methods are always used like this.ref.getValue so this value will be correct.

@amanmahajan7 amanmahajan7 merged commit 3dbf4b3 into master May 10, 2018
@amanmahajan7 amanmahajan7 deleted the ja-editor-refs-fix branch May 10, 2018 01:59
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