You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A view defined like this will not toggle the active class on the element....it appears to be set when its instantiated, but then not updated after the fact on subsequent changes to the bound property. Wondering if I am missing something?
importEmberfrom'ember';exportdefaultEmber.View.extend({tagName: 'path',classNameBindings: ['active'],active: Ember.computed.alias('controller.active'),toggleActive: function(){varctrl=this.get('controller');setInterval(function(){ctrl.toggleProperty('active');console.log(`Toggled active class: ${ctrl.get('active')}`);},500);}.on('didInsertElement')});
A view defined like this will not toggle the
active
class on the element....it appears to be set when its instantiated, but then not updated after the fact on subsequent changes to the bound property. Wondering if I am missing something?See example repo: https://github.com/thejchap/path-classnamebinding-bug
The text was updated successfully, but these errors were encountered: