Skip to content

Commit

Permalink
Merge pull request #78 from adam-als/fixRemove
Browse files Browse the repository at this point in the history
fix(utils): use removeChild() instead of remove()
  • Loading branch information
tajo authored May 13, 2020
2 parents 83e3668 + 76e73ed commit 1bf15b3
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 1bf15b3

Please sign in to comment.