Skip to content

Instantly share code, notes, and snippets.

@davidgilbertson
Created July 5, 2018 11:35
Show Gist options
  • Save davidgilbertson/a18debf61aeaba86d19a7d44114f8e0a to your computer and use it in GitHub Desktop.
Save davidgilbertson/a18debf61aeaba86d19a7d44114f8e0a to your computer and use it in GitHub Desktop.
const handleClick = e => {
if (!modalEl.contains(e.target)) modalEl.hidden = true;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment