mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
4d5c43305b
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
22 lines
462 B
JavaScript
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();
|
|
}
|
|
});
|