Skip to content

Instantly share code, notes, and snippets.

@dziku86
Forked from davidgilbertson/contains.js
Last active May 17, 2020 20:59
Show Gist options
  • Save dziku86/aef1c4751b88599d905f9c5287c099a5 to your computer and use it in GitHub Desktop.
Save dziku86/aef1c4751b88599d905f9c5287c099a5 to your computer and use it in GitHub Desktop.
const handleClick = e => {
if (!modalEl.contains(e.target)) modalEl.hidden = !0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment