Closed thepassle closed 3 years ago
when adding an event, check if it doesnt already exist
__open(dispatch) { if (dispatch) { this.dispatchEvent( new CustomEvent('opened-changed', { detail: true, }), ); } this.__button.setAttribute('aria-expanded', 'true'); } __close() { this.dispatchEvent( new CustomEvent('opened-changed', { detail: false, }), ); this.__button.setAttribute('aria-expanded', 'false'); }
{ "name": "opened-changed", "type": { "type": "CustomEvent" } }, { "name": "opened-changed", "type": { "type": "CustomEvent" } }
when adding an event, check if it doesnt already exist