events end up in manifest multiple times
thepassle opened this issue · 0 comments
thepassle commented
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"
}
}