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

fixed #14716 and fixed #14757 - updated computed label logic to also handle disabled selected option #14768

Conversation

rosenthalj
Copy link
Contributor

Fixed #14716
Fixed #14757
re-fixed #14596 - v17.6.0 broke changes that were made in v17.5.0 that were used to fix issue #14596

The changes:

  1. when computing the label, use all options verses just visible options this new logic will find the selected option whether or not the user is currently filtering because the filtered (i.e. visible) options, are a subset of all the options
  2. When finding selected option, consider all options even those that have been disabled

Note: These changes supersedes PR #14759. This PR contains all the changes of #14759 (change (1)) plus change (2)

Please see the annotated screenshot and the video listed below which shows the fixed issue #14716

Cursor_and_Angular_Dropdown_Component

dropdownDisabledOptionFix.mov

1) when computing the label,  use  all options verses just visible options
this new logic will find the selected option whether or not the user is currently filtering  because the filtered (i.e. visible) options, are a subset of all the options
2) When finding selected option,  consider all options even those that have been disabled
Copy link

vercel bot commented Feb 8, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Feb 8, 2024 3:04pm

@rosenthalj rosenthalj changed the title fixed #14716 and fixed #14757 - updated computed label logic for multiple cases fixed #14716 and fixed #14757 - updated computed label logic to also handle disabled selected option Feb 8, 2024
@cetincakiroglu cetincakiroglu merged commit 81f41ea into primefaces:master Feb 14, 2024
4 checks passed
@cetincakiroglu
Copy link
Contributor

Hi @rosenthalj

Thanks a lot for the effort and support!

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