Skip to content

Commit

Permalink
fix(codebox): fix issue #24[#24]
Browse files Browse the repository at this point in the history
  • Loading branch information
moyus committed Apr 18, 2018
1 parent 15de543 commit abe76d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/codebox/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,14 @@ export default {
},
beforeDestroy() {
if (this.closable) {
document.addEventListener('click', this.$_handleOutClick)
document.removeEventListener('click', this.$_handleOutClick)
}
if (this.focused) {
this.blur()
}
if (!this.system && !this.isView) {
document.body.removeChild(this.$refs.keyboard.$el)
}
},
methods: {
// MARK: private methods
Expand Down

0 comments on commit abe76d6

Please sign in to comment.