Skip to content

Commit

Permalink
Merge branch 'paper-menu' of https://github.com/miguelcobain/ember-paper
Browse files Browse the repository at this point in the history
 into paper-menu
  • Loading branch information
miguelcobain committed Oct 6, 2016
2 parents 702bb74 + 46b4fc3 commit 95f0cfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/components/paper-select-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ const { $ } = Ember;
export default PowerOptions.extend({
tagName: 'md-content',
init() {
this._super(...arguments);
if (this.get('role') === 'group') {
this.set('tagName', '');
this.set('attributeBindings', undefined);
} else if (this.get('searchEnabled')) {
this.set('tagName', 'md-optgroup');
}
this._super(...arguments);
},
didInsertElement() {
if (this.get('role') === 'group') {
Expand Down

0 comments on commit 95f0cfc

Please sign in to comment.