Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

0.10.1-rc1 md-select does not show pre selected Item #3758

Closed
Tyrannmisu opened this issue Jul 16, 2015 · 5 comments
Closed

0.10.1-rc1 md-select does not show pre selected Item #3758

Tyrannmisu opened this issue Jul 16, 2015 · 5 comments
Assignees
Labels
needs: demo A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue type: bug
Milestone

Comments

@Tyrannmisu
Copy link

In 0.10.1-rc1 i have the issue that md-select always shows the input-container label or the placeholder-text until i manually select a value.

I can not get the md-select to show the value that is pre-set in the ng-model (and also matches the md-option ng-value).
The selected item is highlited in the select dropdown but will not be rendered inside the md-select until manually selected.

I would expect that md-select displays the content of it's model (if not undefined/null) and not the label or placeholder.

I use the async functionality.

It seems like md-select can't determine the selected item because the item-list is not loaded yet.
The old md-select still allowed to to display the pre-selected item via md-select-label and i can't find a way to achive something similar now.

Edit:
it works if i pre-load the option list but that destroys the purpose of the async-loading.

@ThomasBurleson ThomasBurleson added the needs: review This PR is waiting on review from the team label Jul 31, 2015
@ThomasBurleson ThomasBurleson modified the milestone: REVISIT Jul 31, 2015
@rschmukler
Copy link
Contributor

@Tyrannmisu can you submit a demo?

@rschmukler rschmukler added needs: demo A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue type: bug severity: broken expected use and removed needs: review This PR is waiting on review from the team labels Aug 3, 2015
@rschmukler rschmukler modified the milestones: 1.0-beta1, REVISIT Aug 3, 2015
@Tyrannmisu
Copy link
Author

Demo on 0.10.1-rc5:
http://codepen.io/anon/pen/oXJrwK

'Scooby Doo' won't show up as selected in the md-select until you click on it (no selection necessary) to load the async values.
It is not possible to pre-select something when using async-options.

@naomiblack naomiblack modified the milestones: 1.0-beta1, 0.12.0 Aug 14, 2015
@roymilder
Copy link

@rschmukler if you could point me in a direction where to look, I can give it a try. We need this for ourselves as well and we can spend some time trying to solve this.

@Tyrannmisu
Copy link
Author

May be related to : #4118

@rschmukler
Copy link
Contributor

Duplicate of #4118 - please follow that one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: demo A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue type: bug
Projects
None yet
Development

No branches or pull requests

5 participants