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

Checkbox in p-treeNode always checked when using custom icon #12951

Closed
michirem opened this issue Apr 26, 2023 · 0 comments
Closed

Checkbox in p-treeNode always checked when using custom icon #12951

michirem opened this issue Apr 26, 2023 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@michirem
Copy link

Describe the bug

The $implicit template context of the ngTemplateOutlet should return a boolean, but it returns the isSelected() function as string instead. $implicit should receive isSelected with parentheses isSelected().

<ng-template *ngTemplateOutlet="tree.checkboxIconTemplate; context: { $implicit: isSelected, partialSelected: node.partialSelected }"></ng-template>

should be

<ng-template *ngTemplateOutlet="tree.checkboxIconTemplate; context: { $implicit: isSelected(), partialSelected: node.partialSelected }"></ng-template>

Environment

Angular with primeng

Reproducer

No response

Angular version

15.2.8

PrimeNG version

15.4.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.16.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@michirem michirem added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 26, 2023
@cetincakiroglu cetincakiroglu self-assigned this Apr 26, 2023
@cetincakiroglu cetincakiroglu added this to the 15.4.2 milestone Apr 26, 2023
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 26, 2023
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