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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -