I'm working with Angular Materia 0.10.1.
I have a md-button
nested inside a md-list-item
. Both elements triggers the ripple effect when clicked, and when I click the button, it triggers the ripple effect on both elements at the same time. I want to have ripples on the button or on the list element only, but never both at the same time.
<md-list flex>
<md-list-item ng-click="a('a')">
<p>Some name</p>
<md-button class="md-accent md-raised" ng-click="b('b', $event)">Do something</md-button>
</md-list-item>
</md-list>
I've used $event.stopPropagation()
but it doesn't stop the ripples in the same way it stops nested click events.
This Plunker can demonstrate it better.