Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit a4b1713

Browse files
authored
Merge branch 'master' into fix-dialog-with-include-fragment
2 parents 34db9c9 + 94290e7 commit a4b1713

File tree

3 files changed

+264
-346
lines changed

3 files changed

+264
-346
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class DetailsDialogElement extends HTMLElement {
213213

214214
const summary = details.querySelector('summary')
215215
if (summary) {
216-
summary.setAttribute('role', 'button')
216+
if (!summary.hasAttribute('role')) summary.setAttribute('role', 'button')
217217
summary.addEventListener('click', onSummaryClick, {capture: true})
218218
}
219219

0 commit comments

Comments
 (0)