Skip to content

Bug: Radio button onChange not called in current React Canary #26876

@robrichard

Description

@robrichard

React version: 18.3.0-canary-a1f97589f-20230526

Steps To Reproduce

  1. Create radio buttons that toggle disabled in onChange
  2. After selecting each radio button, onChange is no longer called

Link to code example:

The following CodeSandbox demonstrates the issue with the current react canary version. The issue is not present when react & react-dom versions are changed to stable 18.2.0

https://codesandbox.io/s/react-canary-radio-buttons-deiqb3?file=/src/App.js

The current behavior

<input type="radio" />'s onChange prop is not called on subsequent clicks of the input

The expected behavior

<input type="radio" />'s onChange prop should be called on subsequent clicks of the input

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions