We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cecd04 commit fa939f0Copy full SHA for fa939f0
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@netdata/netdata-ui",
3
- "version": "4.4.2",
+ "version": "4.4.3",
4
"description": "netdata UI kit",
5
"main": "dist/index.js",
6
"module": "dist/es6/index.js",
src/hooks/useDropElement/index.js
@@ -8,7 +8,13 @@ export default () => {
8
}, [])
9
10
useLayoutEffect(() => {
11
- return () => document.body.removeChild(el)
+ return () => {
12
+ try {
13
+ document.body.removeChild(el)
14
+ } catch (e) {
15
+ // Do nothing
16
+ }
17
18
19
20
return el
0 commit comments