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
Post a Comment