Fix #309 for reals this time

This commit is contained in:
Lea Verou
2024-12-16 11:13:07 -05:00
parent 1013e83032
commit 666f1e5d52

View File

@@ -94,7 +94,7 @@ export default class WaDetails extends WebAwesomeElement {
private handleSummaryClick(event: MouseEvent) {
let targetElement = getTargetElement(event);
if (targetElement?.matches('a, button, wa-button, input, wa-input, textarea, wa-textarea, select, wa-select')) {
if (targetElement?.closest('a, button, wa-button, input, wa-input, textarea, wa-textarea, select, wa-select')) {
// Let interactive elements handle their own clicks, fixes #309
return;
}