material icon indicating copy to clipboard operation
material copied to clipboard

mdListItem: wrapSecondaryItems does not copy ng-show / ng-hide

Open zlovin opened this issue 10 years ago • 0 comments

Actual behavior:

  • What is the issue? Using an <md-icon ng-click="" class="md-secondary"> in an <md-list-item> with ng-hide or ng-show on the <md-icon> does not copy the ng-hide or ng-show to the <button>
  • What is the expected behavior? The button wrapped by the mdList should have the ng-show or ng-hide attributes.

CodePen or Steps to reproduce the issue: *

  • CodePen Demo which shows your issue : http://codepen.io/anon/pen/Mejaqj
  • Details: The mail button has ng-show="mailVisible" on it and while the icon is hidden, the button is still visible and clickable.

In List.js in the copyAttributes function there is a list of attributes to copy. I believe that simply adding ng-show and ng-hide to the list should resolve the issue.

Angular Versions: *

  • Angular Version: 1.5.5
  • Angular Material Version: 1.1.0-rc5

Additional Information:

  • Browser Type: Chrome Canary
  • Browser Version: 53.0.2768.0 canary (64-bit)
  • OS: Mac OSX 10.10.5
  • Stack Traces:

Shortcut to create a new CodePen Demo. Note: * indicates required information. Without this information, your issue may be auto-closed.

Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.

zlovin avatar Jun 18 '16 00:06 zlovin