fix arg name

This commit is contained in:
Cory LaViska
2023-08-14 10:02:23 -04:00
parent aeef986cf5
commit b09a48bec4

View File

@@ -90,15 +90,15 @@ export default class SlDetails extends ShoelaceElement {
this.detailsObserver.disconnect();
}
private handleSummaryClick(ev: MouseEvent) {
ev.preventDefault();
private handleSummaryClick(event: MouseEvent) {
event.preventDefault();
if (!this.disabled) {
if (this.open) {
this.hide();
} else {
this.show();
}
this.header.focus();
}
}