Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ContentElement from 'ember-basic-dropdown/components/basic-dropdown/content-element';
import { get } from '@ember/object';
import { next } from '@ember/runloop';
const CE = ContentElement.extend({
click() {
this.closeDD();
return true;
},
closeDD() {
let dd = get(this, 'parentView.dropdown');
if (get(dd, 'actions')) {
next(() => {
dd.actions.close();
});
}
},
});