Skip to content

Commit

Permalink
fix IE element removeChild
Browse files Browse the repository at this point in the history
  • Loading branch information
estevanmaito committed May 18, 2019
1 parent 2d8e6d8 commit 63a0cca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/sharect.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/helpers/attachEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function handleMouseUp(props) {
moveTooltip({ ...props, isMobile })
return
} else {
document.querySelector('.sharect').remove()
document.body.removeChild(document.querySelector('.sharect'))
}
}
if (hasSelection() && isSelectableElement(props.selectableElements)) {
Expand Down

0 comments on commit 63a0cca

Please sign in to comment.