Skip to content
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

p-radioButton: can't get the value from onClick event #11861

Closed
mohammadreza99 opened this issue Aug 23, 2022 · 0 comments
Closed

p-radioButton: can't get the value from onClick event #11861

mohammadreza99 opened this issue Aug 23, 2022 · 0 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@mohammadreza99
Copy link
Contributor

Describe the bug

When I use onClick output method, depending on whether I clicked on the label or on the radio-button-box elements, I get different objects in the output event. and can not access value of radioButton when click on radio-button-box.
The ideal is to have an onChange event and get an object containing originalEvent and value like other components (such p-dropdown).

Environment

windows

Reproducer

No response

Angular version

14.1.0

PrimeNG version

14.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.6.4

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@mohammadreza99 mohammadreza99 added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 23, 2022
@cetincakiroglu cetincakiroglu added this to the 14.0.2 milestone Aug 24, 2022
cetincakiroglu added a commit that referenced this issue Aug 24, 2022
Fixed #11861 - RadioButton | can't get the value from onClick event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants