Skip to content

Commit

Permalink
fix(utils): use removeChild() instead of remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-zanie committed May 13, 2020
1 parent 83e3668 commit 76e73ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-range",
"version": "1.6.2",
"version": "1.6.3",
"description": "Range input. Slides in all directions.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const getThumbWidth = (
elClone.style.visibility = 'hidden';
document.body.appendChild(elClone);
elWidth = Math.ceil(elClone.getBoundingClientRect().width);
elClone.remove();
document.body.removeChild(elClone);
}
return elWidth > width ? elWidth : width;
},
Expand Down

0 comments on commit 76e73ed

Please sign in to comment.