Skip to content

[Bug]: The <MenuItemRadioGroup> component fires the onChange callback function twice #17736

Closed
@AbrahamLara

Description

@AbrahamLara

Package

@carbon/react

Browser

Chrome

Package version

1.65.0

React version

No response

Description

When an item is selected from the component, it fires the onChange callback function twice. The data returned from the onChange callback returns a onClick event object and then the item that was selected.

Reproduction/example

https://stackblitz.com/edit/github-cmfaqv-vacov7?file=src%2FApp.jsx

Steps to reproduce

Select an item from the submenu.

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

Metadata

Metadata

Assignees

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions