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

Selection not selected when component rerendered #54

Closed
knownasilya opened this issue Jul 31, 2015 · 4 comments
Closed

Selection not selected when component rerendered #54

knownasilya opened this issue Jul 31, 2015 · 4 comments

Comments

@knownasilya
Copy link

{{x-select content=baseThemes
  action="changeBaseTheme"
  selection=currentBaseTheme
  optionLabelPath='content.label'
  optionValuePath='content.id'}}

When the action fires, it sets currentBaseTheme which is located in a service. Now this select is in a panel that renders in an outlet. Once the panel is closed, and reopened, even though currentBaseTheme is the last selected value, the select box shows the first option as selected.

@knownasilya
Copy link
Author

I think that this https://github.com/thefrontside/emberx-select/blob/master/addon/components/x-select.js#L181 should default to this.get('value').

@krivaten
Copy link

👍 Having this same problem.

@dknutsen
Copy link

dknutsen commented Dec 4, 2015

I'm also having an issue with this, specifically when using query params I set a value on my controller property that the x-select is bound to ('user' in this case) and I can see that the controller definitely has 'user' set on it but the x-select does not display it. If I select an item the query param updates, just not the other way around.

@Robdel12
Copy link
Collaborator

Closing this since this seems to be related to the blockless select.

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

No branches or pull requests

4 participants