Skip to content

Commit

Permalink
fix: fix click event handler
Browse files Browse the repository at this point in the history
Closes #49
  • Loading branch information
danielroe authored and robcresswell committed Sep 10, 2019
1 parent 40d2835 commit 3c6da0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ describe('Icon', () => {
})

iconWithEvent.trigger('click')
expect(clickListener).not.toBeCalled()
expect(clickListener).toBeCalled()
});
});
2 changes: 1 addition & 1 deletion template.mst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:class="[data.class, data.staticClass]"
class="material-design-icon <%title%>-icon"
role="img"
@click="listeners.click ? listeners.click : () => true">
v-on="listeners">
<svg :fill="props.fillColor"
class="material-design-icon__svg"
:width="props.size"
Expand Down

0 comments on commit 3c6da0c

Please sign in to comment.