material
material copied to clipboard
mdListItem: wrapSecondaryItems does not copy ng-show / ng-hide
Actual behavior:
- What is the issue? Using an
<md-icon ng-click="" class="md-secondary">in an<md-list-item>withng-hideorng-showon the<md-icon>does not copy theng-hideorng-showto the<button> - What is the expected behavior? The button wrapped by the mdList should have the
ng-showorng-hideattributes.
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.