If you click on child element but not on parent

Add this check: if (e.target === this) { //action here }

Comments

Popular posts from this blog

Git Commands