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

SelectButton | throws a exception when options are changed #11915

Closed
EnricoMessall opened this issue Sep 10, 2022 · 0 comments · Fixed by #11916
Closed

SelectButton | throws a exception when options are changed #11915

EnricoMessall opened this issue Sep 10, 2022 · 0 comments · Fixed by #11916
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@EnricoMessall
Copy link
Contributor

Describe the bug

Changing the mode to Multi Select sometimes results in an error because the selection is not updated immediately. To fix this error, the isSelected method should check if the value is of array type.

Environment

Component is updating selectButton to multi Select Mode and resets selected values. This sometimes results in errors.

Reproducer

No response

Angular version

14.0.6

PrimeNG version

14.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.0.1

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@EnricoMessall EnricoMessall added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Sep 10, 2022
volvachev added a commit to volvachev/primeng that referenced this issue Sep 10, 2022
@mertsincan mertsincan linked a pull request Sep 13, 2022 that will close this issue
@mertsincan mertsincan changed the title Component: SelectButton SelectButton | throws a exception when options are changed Sep 13, 2022
@mertsincan mertsincan added this to the 14.0.3 milestone Sep 13, 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