sweetalert-react icon indicating copy to clipboard operation
sweetalert-react copied to clipboard

Cannot read property 'parentNode' of null

Open andylacko opened this issue 7 years ago • 1 comments

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

andylacko avatar Aug 14 '18 15:08 andylacko

facing same issue

roshanCN avatar Oct 27 '20 10:10 roshanCN