mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Remove active class from buttons.
refs #3989 - Remove active class from {{#link-to tagName="button" ..}}
This commit is contained in:
parent
5e0c890b4d
commit
1f8b323285
1 changed files with 4 additions and 0 deletions
|
@ -5,5 +5,9 @@ Ember.LinkView.reopen({
|
||||||
Ember.set(this, 'alternateActive', isActive);
|
Ember.set(this, 'alternateActive', isActive);
|
||||||
|
|
||||||
return isActive;
|
return isActive;
|
||||||
|
}),
|
||||||
|
|
||||||
|
activeClass: Ember.computed('tagName', function () {
|
||||||
|
return this.get('tagName') === 'button' ? '' : 'active';
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue