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

Cannot read property 'parentNode' of null #109

Open
andylacko opened this issue Aug 14, 2018 · 1 comment
Open

Cannot read property 'parentNode' of null #109

andylacko opened this issue Aug 14, 2018 · 1 comment

Comments

@andylacko
Copy link

errors with Cannot read property 'parentNode' of null

child component: onConfirm={this.props.confirmAction}

parent component: confirmAction={this.confirm.bind(this)}

function:

  confirm() {
    this.setState({
      saving: true,
      confirm: true,
    }, () => {
      this.save()
    })
  }

really don't understand the strange behaviour, when I remove setState from function confirm of parrent component, it works

@roshanCN
Copy link

facing same issue

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

No branches or pull requests

2 participants