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.
1 parent d4d41eb commit c8b518cCopy full SHA for c8b518c
index.js
@@ -184,7 +184,11 @@ function shouldCommit(event: Event) {
184
function updateChecked(selected: Element, details: Element) {
185
for (const el of details.querySelectorAll('[role="menuitemradio"], [role="menuitemcheckbox"]')) {
186
const input = el.querySelector('input[type="radio"], input[type="checkbox"]')
187
- el.setAttribute('aria-checked', (input instanceof HTMLInputElement ? input.checked : el === selected).toString())
+ let checkState = el === selected
188
+ if (input instanceof HTMLInputElement) {
189
+ checkState = input.indeterminate ? 'mixed' : input.checked
190
+ }
191
+ el.setAttribute('aria-checked', checkState.toString())
192
}
193
194
0 commit comments