clauderic / clauderic/react-sortable-hoc

Cannot read property 'removeChild' of null

Open
#549 10 comments 26 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.9k
Forks
959
PR merge metrics
No merged PRs in 30d

Description

### I used onMouseDown to delete items data, and I reported this error, unable to locate what the problem was.

```js




```

```js
onDelete(value: string) {
console.log(value, 'value')
let { items } = this.state;
items = items!.filter((item: string) => item !== value);
this.setState({ items }, () => {
this.props.onDelete && this.props.onDelete(items);
})
}
```

![image](https://user-images.githubusercontent.com/27543832/58482615-43d84a00-8191-11e9-8a8d-8947f3a99d3b.png)

```js
Deleting will result in an error and a request will be sent. I don't know where the request originated and whether it can be blocked
```

### I need help Thank you

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.