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

Mat select- problem in selecting all duplicate values upon loading #13179

Closed
harshabada opened this issue Sep 18, 2018 · 4 comments · Fixed by #13361
Closed

Mat select- problem in selecting all duplicate values upon loading #13179

harshabada opened this issue Sep 18, 2018 · 4 comments · Fixed by #13361
Assignees
Labels
area: material/select P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@harshabada
Copy link

Bug

What is the expected behavior?

mat-select: duplicate values should be selected upon loading

What is the current behavior?

mat-select: duplicate values is not selected upon loading

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

What is the use-case or motivation for changing an existing behavior?

Angular 5, mateiral 5..

Is there anything else we should know?

if there are three duplicate values only one of the value selected and the rest two values are not selected

@harshabada
Copy link
Author

harshabada commented Sep 18, 2018

@macjohnny
Copy link
Contributor

@harshabada I suggest you to use different value attributes if you want to show the same item multiple times in the list

@crisbeto crisbeto self-assigned this Sep 29, 2018
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent has pr labels Sep 29, 2018
crisbeto added a commit to crisbeto/material2 that referenced this issue Sep 29, 2018
…alue with duplicates

Fixes `mat-select` not marking all of the options as selected, when an array with duplicate values is assigned programmatically.

Fixes angular#13179.
@crisbeto
Copy link
Member

This definitely isn't being handled correctly at the moment. It'll be fixed by #13361.

vivian-hu-zz pushed a commit that referenced this issue Nov 6, 2018
…alue with duplicates

Fixes `mat-select` not marking all of the options as selected, when an array with duplicate values is assigned programmatically.

Fixes #13179.
crisbeto added a commit to crisbeto/material2 that referenced this issue Mar 17, 2019
…alue with duplicates

Fixes `mat-select` not marking all of the options as selected, when an array with duplicate values is assigned programmatically.

Fixes angular#13179.
crisbeto added a commit to crisbeto/material2 that referenced this issue Jun 2, 2019
…alue with duplicates

Fixes `mat-select` not marking all of the options as selected, when an array with duplicate values is assigned programmatically.

Fixes angular#13179.
crisbeto added a commit to crisbeto/material2 that referenced this issue Oct 13, 2019
…alue with duplicates

Fixes `mat-select` not marking all of the options as selected, when an array with duplicate values is assigned programmatically.

Fixes angular#13179.
annieyw pushed a commit that referenced this issue Feb 9, 2021
…alue with duplicates (#13361)

Fixes `mat-select` not marking all of the options as selected, when an array with duplicate values is assigned programmatically.

Fixes #13179.
annieyw pushed a commit that referenced this issue Feb 9, 2021
…alue with duplicates (#13361)

Fixes `mat-select` not marking all of the options as selected, when an array with duplicate values is assigned programmatically.

Fixes #13179.

(cherry picked from commit 07faecc)
annieyw pushed a commit that referenced this issue Feb 9, 2021
…alue with duplicates (#13361)

Fixes `mat-select` not marking all of the options as selected, when an array with duplicate values is assigned programmatically.

Fixes #13179.

(cherry picked from commit 07faecc)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: material/select P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
4 participants