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

Update selection changing events #13619

Merged
merged 20 commits into from
Nov 7, 2023

Conversation

wnvko
Copy link
Contributor

@wnvko wnvko commented Oct 31, 2023

Change the oldSelection and newSelection properties of both combos selection changing arguments to oldValue and newValue. Also add oldSelection and newSelection which should always emit the entire selected items.

Also fixes disappearing combo items in the input string when combo is bound to remote data.

Closes #13595

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@wnvko wnvko requested a review from damyanpetev October 31, 2023 17:00
@wnvko wnvko marked this pull request as draft October 31, 2023 17:01
@wnvko wnvko marked this pull request as ready for review November 2, 2023 11:48
@Lipata Lipata requested a review from kdinev November 2, 2023 12:24
@valadzhov valadzhov added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Nov 3, 2023
kdinev
kdinev previously approved these changes Nov 6, 2023
kdinev
kdinev previously approved these changes Nov 6, 2023
@valadzhov valadzhov added ✅ status: verified Applies to PRs that have passed manual verification 💥 status: in-test PRs currently being tested and removed 💥 status: in-test PRs currently being tested ✅ status: verified Applies to PRs that have passed manual verification labels Nov 6, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Damyan Petev <damyanpetev@users.noreply.github.com>
wnvko and others added 2 commits November 6, 2023 16:25
Co-authored-by: Damyan Petev <damyanpetev@users.noreply.github.com>
Co-authored-by: Damyan Petev <damyanpetev@users.noreply.github.com>
@valadzhov
Copy link
Collaborator

This is the result when setting the valueKey to null and this might be a minor issue:
image

@valadzhov valadzhov added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Nov 6, 2023
damyanpetev
damyanpetev previously approved these changes Nov 6, 2023
@wnvko
Copy link
Contributor Author

wnvko commented Nov 6, 2023

This is the result when setting the valueKey to null and this might be a minor issue: image

this should not be supported.

@wnvko wnvko requested a review from damyanpetev November 6, 2023 17:54
@ChronosSF
Copy link
Member

@wnvko , please fix the conflict

kdinev
kdinev previously approved these changes Nov 7, 2023
@ChronosSF ChronosSF requested a review from kdinev November 7, 2023 12:30
];

fixture.componentInstance.reactiveForm.resetForm();
fixture.detectChanges();

expect(combo.displayValue).toEqual([]);
Copy link
Member

Choose a reason for hiding this comment

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

👀 I see we have our work cut out for us

@wnvko wnvko requested a review from damyanpetev November 7, 2023 13:32
@damyanpetev damyanpetev merged commit 5b4a4e1 into master Nov 7, 2023
5 checks passed
@damyanpetev damyanpetev deleted the mvenkov/combo-selection-change-event-update branch November 7, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

igx-combo selectionChanging has inconsistent arguments depending on valueKey
6 participants