Skip to content

fix(overlay): fix combo binding in overlay styling demo#3621

Merged
gedinakova merged 6 commits into
vnextfrom
thristodorova/fix-3616
Mar 11, 2025
Merged

fix(overlay): fix combo binding in overlay styling demo#3621
gedinakova merged 6 commits into
vnextfrom
thristodorova/fix-3616

Conversation

@teodosiah
Copy link
Copy Markdown
Contributor

Closes #3616

@@ -1,4 +1,4 @@
<div class="combo-wrapper">
<igx-combo [data]="items" valueKey="name" displayKey="name" [ngModel]="[items[2]]" width="410px" [overlaySettings]="{ outlet: element, modal: true }">
<igx-combo [data]="items" valueKey="name" displayKey="name" [(ngModel)]="selectedItems" width="410px" [overlaySettings]="{ outlet: element, modal: true }">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of adding a new prop, isn't it better to simply add the path as follows:

Suggested change
<igx-combo [data]="items" valueKey="name" displayKey="name" [(ngModel)]="selectedItems" width="410px" [overlaySettings]="{ outlet: element, modal: true }">
<igx-combo [data]="items" valueKey="name" displayKey="name" [(ngModel)]="[items[2].name]" width="410px" [overlaySettings]="{ outlet: element, modal: true }">

@teodosiah teodosiah requested a review from gedinakova March 10, 2025 13:00
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.

2 participants