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

Disabled radio still clickable via label #983

Closed
JakeSummers opened this issue Sep 28, 2016 · 1 comment
Closed

Disabled radio still clickable via label #983

JakeSummers opened this issue Sep 28, 2016 · 1 comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@JakeSummers
Copy link
Contributor

When you have a radio button that is disabled you can still click on the text beside the radio button to toggle it.

For example, dispite the fact that BAR is disabled, I can still click on the text BAR to select the button:

image

After Click:

image

Code:

<p-radioButton class="radio-holder"
               value="bar"
               label="BAR"
               [disabled]="true"
               [(ngModel)]="foo"
></p-radioButton>
<p-radioButton class="radio-holder"
               value="baz"
               label="BAZ"
               [disabled]="true"
               [(ngModel)]="foo"
></p-radioButton>

Clicking on the actual button works as selected (it won't change the selected state).

@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 25, 2016
@cagataycivici cagataycivici changed the title When a radio button is disabled, you can still click on the text to toggle it Disabled radio still clickable via label Oct 25, 2016
@mertsincan mertsincan added this to the 1.0.0-beta.20 milestone Oct 18, 2018
@ziadvictor
Copy link

ziadvictor commented Nov 12, 2018

This issue was fixed for <p-radioButton> but not for <p-tableRadioButton> which should be used inside a <p-table>.
I can still click on a <p-tableRadioButton> even after it's been disabled.

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

4 participants