We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e383b3 + 767ec2a commit 844dbecCopy full SHA for 844dbec
index.js
@@ -289,6 +289,8 @@ function isMenuItem(el: Element): boolean {
289
}
290
291
function close(details: Element) {
292
+ const wasOpen = details.hasAttribute('open')
293
+ if (!wasOpen) return
294
details.removeAttribute('open')
295
const summary = details.querySelector('summary')
296
if (summary) summary.focus()
0 commit comments