-
Notifications
You must be signed in to change notification settings - Fork 161
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
IgxCombo: Cannot select falsy values #11610
Comments
@Timmeeeey, the described behavior is expected as while the display key (i.e., field) can be a falsy value, the value key (i.e., value) cannot, since it is used by the selection service as an identifier to determine what item should be added to the selection. Having this in mind, in the newly introduced fix, items with falsy value keys will not be displayed in the combo in order not to confuse the users. |
Hi, you said it is expected behaviour but is it intended? |
@Timmeeeey Actually, the functionality should be the opposite of what @RivaIvanova is describing. Search should be performed by display value - it's what users see, so it makes sense search to search by the values they see - and display values should always be strings, so the only falsy value possibly there is @Timmeeeey Your example is perfectly valid and it should work! @RivaIvanova I looked over the PR and I believe a different fix should be applied. |
This issue is a regression introduced with #11206 |
fix(combo): selectable unique falsy values #11610
fix(combo): selectable unique falsy values #11610
fix(combo): selectable unique falsy values #11610
fix(combo): selectable unique falsy values #11610
Description
IgxCombo can't select items with falsy values like false, null or empty string.
Related to #11357
Result
Falsy values can't be selected.
Expected result
Falsy values should be selectable.
Attachments
https://stackblitz.com/edit/angular-obbbi4
The text was updated successfully, but these errors were encountered: