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-treeSelect: selectionMode="checkbox" and [showClear]="true" doesn't work properly #12050

Closed
jschu opened this issue Oct 16, 2022 · 0 comments · Fixed by #12051
Closed

p-treeSelect: selectionMode="checkbox" and [showClear]="true" doesn't work properly #12050

jschu opened this issue Oct 16, 2022 · 0 comments · Fixed by #12051
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@jschu
Copy link

jschu commented Oct 16, 2022

Describe the bug

If you use the component with selectionMode="checkbox" and [showClear]="true" the minus icons doesn't get cleared.

Environment

not relevant

Reproducer

https://stackblitz.com/edit/github-drcvx7?file=src/app/app.component.html

Angular version

14.0.7

PrimeNG version

14.0.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.10.0

Browser(s)

No response

Steps to reproduce the behavior

  • Select nested Item (for example "Work")
  • Now the parent item (Documents) is marked with a minus icon:

Screenshot 2022-10-16 at 14 50 11

  • Click on the clear icon
  • Now the selection is cleared but the minus icon is still there:

Screenshot 2022-10-16 at 14 50 19

Expected behavior

Minus icon also gets cleared

@jschu jschu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 16, 2022
volvachev added a commit to volvachev/primeng that referenced this issue Oct 16, 2022
@cetincakiroglu cetincakiroglu added this to the 14.1.3 milestone Oct 18, 2022
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

Successfully merging a pull request may close this issue.

2 participants