Skip to content

Commit

Permalink
fix: primefaces#17230 listbox and tree checkbox filled or outline var…
Browse files Browse the repository at this point in the history
…iant
  • Loading branch information
Christian Tu committed Dec 27, 2024
1 parent df74566 commit 9b0330c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/primeng/src/listbox/listbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const LISTBOX_VALUE_ACCESSOR: any = {
[ngModel]="allSelected()"
[disabled]="disabled"
[tabindex]="-1"
[variant]="config.inputStyle() === 'filled' ? 'filled' : 'outlined' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
[binary]="true"
>
<ng-container *ngIf="checkIconTemplate || _checkIconTemplate">
Expand Down Expand Up @@ -205,7 +205,7 @@ export const LISTBOX_VALUE_ACCESSOR: any = {
[readonly]="true"
[disabled]="disabled || isOptionDisabled(option)"
[tabindex]="-1"
[variant]="config.inputStyle() === 'filled' ? 'filled' : 'outlined' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
[binary]="true"
>
<ng-container *ngIf="checkIconTemplate || _checkIconTemplate">
Expand Down
2 changes: 1 addition & 1 deletion packages/primeng/src/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ import {
[indeterminate]="node.partialSelected"
*ngIf="tree.selectionMode == 'checkbox'"
[disabled]="node.selectable === false"
[variant]="tree?.config.inputStyle() === 'filled' ? 'filled' : 'outlined' || tree?.config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
[variant]="tree?.config.inputStyle() === 'filled' || tree?.config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
[attr.data-p-partialchecked]="node.partialSelected"
[tabindex]="-1"
(click)="$event.preventDefault()"
Expand Down

0 comments on commit 9b0330c

Please sign in to comment.