Open csantos-nydig opened 2 weeks ago
Can you check if it works with native radio groups? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio
If I had to guess though, probably a missed case in here https://github.com/capricorn86/happy-dom/blob/8b39e38b23f7258323eb41b842aefc45ace3a814/packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts#L1031
Provide a general summary of the issue here
selecting radio options using keyboard (
ArrowDown
andArrowUp
) is not working on vitest + happy-dom๐ค Expected Behavior?
"pressing"
ArrowDown
should select the next radio button and fire its value viaonChange
๐ฏ Current Behavior
"pressing"
ArrowDown
does not select the next radio button๐ Possible Solution
I'm almost sure this might be an issue on happy-dom itself, because it works fine in JSDOM.
But it's hard for me to tell what react-aria is doing that is supported by JSDOM but not supported by HAPPY-DOM.
I'm cross-linking both issues, so hopefully we can collaborate and see what needs to be done and where ๐ https://github.com/capricorn86/happy-dom/issues/1605
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
npm run test
JSDOM
but fails inHAPPY-DOM
Version
latest
What browsers are you seeing the problem on?
Other
If other, please specify.
vitest + happy-dom
What operating system are you using?
happy-dom
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response