Permalink
Browse files

fix: detach clickout listener in beforeDestroy

  • Loading branch information...
tmorehouse authored and pi0 committed Nov 28, 2017
1 parent 3f593df commit b290cad0c0f4fbff9c1dab6bdcee6dfa933c1359
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 b290cad

Please sign in to comment.