From 1f8b3232851ae2a9f27a0ad026f1d3d76d24ee2b Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Tue, 9 Sep 2014 20:58:12 +0000 Subject: [PATCH] Remove active class from buttons. refs #3989 - Remove active class from {{#link-to tagName="button" ..}} --- core/client/utils/link-view.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/client/utils/link-view.js b/core/client/utils/link-view.js index 9b0b85a452..18f7cf9468 100644 --- a/core/client/utils/link-view.js +++ b/core/client/utils/link-view.js @@ -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'; }) });