Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Trigger from 'ember-basic-dropdown/components/basic-dropdown-trigger';
export default Trigger.extend({
didOpen: false,
didReceiveAttrs() {
let { dropdown, oldDropdown = {} } = this;
if ((oldDropdown && oldDropdown.isOpen) === false && dropdown.isOpen) {
this.set('didOpen', true);
}
this.set('oldDropdown', dropdown);
}
});