sweetalert-react
sweetalert-react copied to clipboard
Cannot read property 'parentNode' of null
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
facing same issue