Skip to content

Instantly share code, notes, and snippets.

@daihuaye
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save daihuaye/b5a0257207ebb35c708d to your computer and use it in GitHub Desktop.

Select an option

Save daihuaye/b5a0257207ebb35c708d to your computer and use it in GitHub Desktop.
IE 9 issue in bubbling event

IE9 issue on click event

<div class="test">
  <span>Click Me</span>
  <i class="icon-shopping-cart"></i>
  <div class="overlay-div"></div>
</div>
$('.overlay-div').click(function(event){
  console.log(event.target); // it will be child element whatever you style in IE9
});
.overlay-div {
  width: 100%;
  height: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment