Skip to content

Commit

Permalink
Fix remove element helper in IE (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
damanwiththeplan authored and jtommy committed Nov 6, 2018
1 parent c98f16f commit 8dcb755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const isMobile = {
export function removeElement(el) {
if (typeof el.remove !== 'undefined') {
el.remove()
} else {
} else if (typeof el.parentNode !== 'undefined') {
el.parentNode.removeChild(el)
}
}
Expand Down

0 comments on commit 8dcb755

Please sign in to comment.