material-components / material-components/material-web
md-radio: check by keyboard doesn't trigger 'input' event
Nobody has claimed this yet.
- Dominant language
- SCSS
- Stars
- 11.3k
- Forks
- 1.1k
- Avg merge
- 20h 28m
- Merged PRs (30d)
- 13
Description
### What is affected?
Component
### Description
Checking radio in a radio group via keyboard arrows should trigger 'input' and 'change' event. `` dispatches 'change' event only: [code](https://github.com/material-components/material-web/blob/5f93c82546bbb428dcc8461b2e34cfe49178b0eb/radio/internal/single-selection-controller.ts#L228).
### Reproduction
Can be observed [here](https://stackblitz.com/edit/webpack-webpack-js-org-xwa6ut?file=dist%2Findex.html)
### Workaround
None
### Is this a regression?
No or unsure. This never worked, or I haven't tried before.
### Affected versions
1.1.1
### Browser/OS/Node environment
Browser: Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0
OS: Windows NT 10.0; Win64; x64
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in internal/single-selection-controller.ts at the linked line and reproduce the keyboard-arrow behavior using the provided StackBlitz example. Verify that checking an md-radio in a group emits both input and change events, including in the affected 1.1.1 scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100