Permalink
Browse files

fix: detach clickout listener in beforeDestroy

  • Loading branch information...
tmorehouse committed Nov 28, 2017
1 parent 68ddba4 commit 89618de14f68fc9b3f930463ecdade01a73356e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mixins/clickout.js
@@ -4,7 +4,7 @@ export default {
document.documentElement.addEventListener('click', this._clickOutListener)
}
},
destroyed () {
beforeDestroy () {
if (typeof document !== 'undefined') {
document.removeEventListener('click', this._clickOutListener)
}

0 comments on commit 89618de

Please sign in to comment.