Remove active class from buttons.

refs #3989
- Remove active class from {{#link-to tagName="button" ..}}
This commit is contained in:
Fabian Becker 2014-09-09 20:58:12 +00:00
parent 5e0c890b4d
commit 1f8b323285

View File

@ -5,5 +5,9 @@ Ember.LinkView.reopen({
Ember.set(this, 'alternateActive', isActive);
return isActive;
}),
activeClass: Ember.computed('tagName', function () {
return this.get('tagName') === 'button' ? '' : 'active';
})
});