Skip to content

Instantly share code, notes, and snippets.

@faforty
Created September 13, 2017 07:44
Show Gist options
  • Save faforty/8abfa709e63e8a99ac667f9551e8b637 to your computer and use it in GitHub Desktop.
Save faforty/8abfa709e63e8a99ac667f9551e8b637 to your computer and use it in GitHub Desktop.
handleClickOutside (event) {
const uiModalBox = this.$refs.uiModalBox
if (!event.path.includes(uiModalBox) && !event.path.includes(this.el) && this.isShow == true) {
this.close()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment