Skip to content

feat(ui5-multi-combobox): implement angular two way data binding #1363

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

Merged
merged 3 commits into from
Mar 26, 2020

Conversation

fifoosid
Copy link
Contributor

No description provided.

@@ -476,6 +476,8 @@ class MultiComboBox extends UI5Element {
}

_getSelectedItems() {
// Angular 2 way data binding
this.selectedValues = this.items.filter(item => item.selected);
return this.items.filter(item => item.selected);
Copy link
Member

Choose a reason for hiding this comment

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

this.items.filter(item => item.selected) is duplicated, just return this.selectedValues;

@fifoosid fifoosid requested a review from ilhan007 March 26, 2020 07:45
@ilhan007 ilhan007 dismissed their stale review March 26, 2020 07:49

resolved

@fifoosid fifoosid merged commit 33009db into master Mar 26, 2020
@fifoosid fifoosid deleted the mcb-ng branch March 26, 2020 08:12
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