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

Fix variable in getOptionValue in multiselect #16651 #16652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mperezd
Copy link

@mperezd mperezd commented Oct 28, 2024

Fix for issue #16651

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Oct 28, 2024 8:47am
primeng-v18 ⬜️ Ignored (Inspect) Visit Preview Oct 28, 2024 8:47am

Copy link
Contributor

@rosenthalj rosenthalj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this proposed change is correct or not (I'm not trying to validate it), but the conditional ternary operator (this.optionValue ?) results in (!this.optionValue) always being true and can be removed:

Fix_variable_in_getOptionValue_in_multiselect__16651_by_mperezd_·Pull_Request__16652·_primefaces_primeng

I then decided to review the original code change and now my question is was the original "!this.optionLabel" logic correct or not? I don't know, but ...

Blaming_primeng_src_app_components_multiselect_multiselect_ts_at_master_·_primefaces_primeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants