kopia lustrzana https://github.com/shoelace-style/shoelace
fix arg name
rodzic
aeef986cf5
commit
b09a48bec4
|
@ -90,15 +90,15 @@ export default class SlDetails extends ShoelaceElement {
|
||||||
this.detailsObserver.disconnect();
|
this.detailsObserver.disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleSummaryClick(ev: MouseEvent) {
|
private handleSummaryClick(event: MouseEvent) {
|
||||||
ev.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
if (!this.disabled) {
|
if (!this.disabled) {
|
||||||
if (this.open) {
|
if (this.open) {
|
||||||
this.hide();
|
this.hide();
|
||||||
} else {
|
} else {
|
||||||
this.show();
|
this.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.header.focus();
|
this.header.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue