Skip to content

feat: Emit native change events in form components #8426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

devongovett
Copy link
Member

@devongovett devongovett commented Jun 19, 2025

Closes #6217, closes #5955, closes #3799, closes #6320

For discussion.

if (!type || type === 'input') {
let inputEvent = new Event('input', {bubbles: true});
inputEvent['__reactAriaIgnore'] = true;
el.dispatchEvent(inputEvent);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't love that this starts a new capture phase for the event

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm? It's not re-dispatching an existing event, it's totally new. So isn't that expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants