Skip to content

Commit

Permalink
Fixed #11004 - Table Selection | Disabled checkbox getting pointer cu…
Browse files Browse the repository at this point in the history
…rsor
  • Loading branch information
yigitfindikli committed Dec 27, 2021
1 parent 4dfd50a commit 0d7565b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ export class CellEditor implements AfterContentInit {
@Component({
selector: 'p-tableRadioButton',
template: `
<div #container class="p-radiobutton p-component" [ngClass]="{'p-radiobutton-focused':focused}" (click)="onClick($event)">
<div #container class="p-radiobutton p-component" [ngClass]="{'p-radiobutton-focused':focused, 'p-radiobutton-disabled': disabled}" (click)="onClick($event)">
<div class="p-hidden-accessible">
<input type="radio" [attr.id]="inputId" [attr.name]="name" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()"
[disabled]="disabled" [attr.aria-label]="ariaLabel">
Expand Down Expand Up @@ -3912,7 +3912,7 @@ export class TableRadioButton {
@Component({
selector: 'p-tableCheckbox',
template: `
<div #container class="p-checkbox p-component" [ngClass]="{'p-checkbox-focused':focused}" (click)="onClick($event)">
<div #container class="p-checkbox p-component" [ngClass]="{'p-checkbox-focused':focused, 'p-checkbox-disabled': disabled}" (click)="onClick($event)">
<div class="p-hidden-accessible">
<input type="checkbox" [attr.id]="inputId" [attr.name]="name" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="disabled"
[attr.required]="required" [attr.aria-label]="ariaLabel">
Expand Down Expand Up @@ -3991,7 +3991,7 @@ export class TableCheckbox {
@Component({
selector: 'p-tableHeaderCheckbox',
template: `
<div #container class="p-checkbox p-component" [ngClass]="{'p-checkbox-focused':focused}" (click)="onClick($event)">
<div #container class="p-checkbox p-component" [ngClass]="{'p-checkbox-focused':focused, 'p-checkbox-disabled': disabled}" (click)="onClick($event)">
<div class="p-hidden-accessible">
<input #cb type="checkbox" [attr.id]="inputId" [attr.name]="name" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()"
[disabled]="isDisabled()" [attr.aria-label]="ariaLabel">
Expand Down

0 comments on commit 0d7565b

Please sign in to comment.