javascript - data-bind click event does not work on chrome for svg under div -


i working knockout.js , code -

<div data-bind = "event:{click: clickhandler}">     <svg ...>         <polygon ... > </polygon>     </svg> </div> 

clicking on svg not work on chrome, have click outside svg on div, work on chroms. reason, click event isn't fired in chrome, works fine in ie 11 , edge browsers.

any ideas appreciated.

the problem div containing above div, needed pointer-events : none property

<div style ="pointer-events: none">    <div data-bind = "event:{click: clickhandler}">       <svg ...>         <polygon ... > </polygon>       </svg>    </div> <div> 

Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -