Ghost/ghost/admin/app/components/gh-activating-list-item.js
Kevin Ansfield 4d5c43305b Removed deprecated usage of this.$() in components
no issue

- converted remaining uses of `this.$()` that I could find over to native DOM
- deprecation is still silenced for now because both `liquid-fire` and `liquid-wormhole` trigger it
2020-01-10 15:12:39 +00:00

22 lines
462 B
JavaScript

import Component from '@ember/component';
import {schedule} from '@ember/runloop';
export default Component.extend({
active: false,
classNameBindings: ['active'],
linkClasses: null,
tagName: 'li',
actions: {
setActive(value) {
schedule('afterRender', this, function () {
this.set('active', value);
});
}
},
click() {
this.element.querySelector('a').blur();
}
});