Skip to content

Commit fa939f0

Browse files
committed
v4.4.3
1 parent 1cecd04 commit fa939f0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/netdata-ui",
3-
"version": "4.4.2",
3+
"version": "4.4.3",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/hooks/useDropElement/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ export default () => {
88
}, [])
99

1010
useLayoutEffect(() => {
11-
return () => document.body.removeChild(el)
11+
return () => {
12+
try {
13+
document.body.removeChild(el)
14+
} catch (e) {
15+
// Do nothing
16+
}
17+
}
1218
}, [])
1319

1420
return el

0 commit comments

Comments
 (0)