Skip to content

Commit

Permalink
Fixed problem with paper-select-options in Ember 2.7+ (#510)
Browse files Browse the repository at this point in the history
fixed issue with ember 2.7+ select-options
  • Loading branch information
ibarrick authored and miguelcobain committed Oct 6, 2016
1 parent 019a1cb commit 46b4fc3
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 46b4fc3

Please sign in to comment.