jquery - javascript event conflict, but not sure how to identify the first event assignment -
i have element <div class='graph'>
, try associate onclick event it. there dynamic loading process on top of element, not sure event handler process load exactly.
for example, after open webpage, use highchart plot chart on <div class='graph'>
, tried add event handler $('.graph').on('click',function(){//to show text when click <div>}
, unfortunately, not work (the function never execute when click on element). think image highchart added 'click' event on '.graph'
. when add 'click' event, not work expected.
my question is:
1) how know what's first 'click' event (by console.log($('.graph').click())
seems not giving me useful info)?
2) how should make second click successful?
thanks or hints!
in source code can find line #9946 (for 4.1.7) - prevents default method, however, there won't find stoppropagation()
call.
i suggest use chart.events.click
instead.
Comments
Post a Comment