material icon indicating copy to clipboard operation
material copied to clipboard

An secondary action md-button with an ng-href also performs the primary action on click.

Open TylerDixon opened this issue 10 years ago • 2 comments

Example adapted from the "List Controls" codepen: http://codepen.io/anon/pen/vLjXME

The md-list-item has a primary action to bring up a dialog, and there is an link in the form of an md-button with an ng-href as the md-secondary of the list item. Clicking this link performs both the primary and secondary action of the list item.

TylerDixon avatar Jan 27 '16 21:01 TylerDixon

Need identify way to stop propagation of secondary action events.

ThomasBurleson avatar Jan 28 '16 04:01 ThomasBurleson

#6493 will also fix that issue, through the separated content, which has much positive effects (click events for child events will not propagate to the actual button; will allow multiple secondary elements to be clicked)

devversion avatar Jan 28 '16 12:01 devversion