You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this issue, I would like to share it, may be README could be updated as well, it took me several days to get it working.
Basically, the scenario is that you have an item model with belongsTo category property. you want to edit an item and show categories as a select box, so user can update the category.
you have to use the content in the select value because the belongsTo is a promise:
@yasirhantoush this works to get the correct selected value in the dropdown. However, it then doesn't send the correct value to be updated upon submit. Did you run into this as well?
If I leave off the .content then the correct selected value is sent.
Yeah, also encountered this problem. The emberx-select just does not work with promises. There's no easy fix either, because the whole code structure is not build to support promises...
I just got burned by this bug or something similar.
Component makes store.query for data to populate menu.
Promise resolves, we then build out a grouped set of options.
We then set the value of the belongsTo to the user's preferred default option.
The select menu does not show the correct selection, it defaults to the first item, but when saved the selected item is passed to the server. This ends up confusing the hell out of the users ;)
I came across this issue, I would like to share it, may be README could be updated as well, it took me several days to get it working.
Basically, the scenario is that you have an item model with belongsTo category property. you want to edit an item and show categories as a select box, so user can update the category.
you have to use the content in the select value because the belongsTo is a promise:
The text was updated successfully, but these errors were encountered: