Skip to content

Commit

Permalink
Fix onclick events for SVG elements (#13)
Browse files Browse the repository at this point in the history
Clicking on a node in any of the SVG elements should navigate to the corresponding node definition, but the event was not being passed to the svgBlockClick handler.

Tested on Chrome v71.0.3578.80 and Firefox 60.2.0esr, on Linux (Ubuntu).
  • Loading branch information
mykmartin authored and dundalek committed Dec 10, 2018
1 parent 123eb7c commit e91e151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/viewer.html
Expand Up @@ -34,7 +34,7 @@ <h2>{{name}}</h2>
{{#rules}}
<div class="rule">
<h3 id={{name}}>{{name}}</h3>
<div onclick=svgBlockClick>
<div onclick="svgBlockClick(event)">
{{{diagram}}}
</div>
<div>
Expand Down

0 comments on commit e91e151

Please sign in to comment.