Skip to content Skip to sidebar Skip to footer

Chrome Doesn't Fire Click Event For Svg Element (firefox Does)

I observe inconsistency/bug in handling click event among various browsers (Chrome, Edge, Firefox). In my JavaScript library that uses SVG I create clickable and draggable rectangl

Solution 1:

After some time I reported this question to Chrome dev team because I thought it is a bug. But it's not. The behavior for cases when an element is removed from the document tree and then added back before mouseup (e.g. appendChild(lastChild)) is not defined yet by W3 committee. As result behavior varies from browser to browser.

Progress for the problem can be tracked with following links:

  1. Chrome issue thread

  2. W3C issue discussion thread

Post a Comment for "Chrome Doesn't Fire Click Event For Svg Element (firefox Does)"