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'm trying to build a select box to let the user choose a models.belongsTo property from a list of models retrieved through the store. While the selection process in general is working, the initial selection after reloading the page is not set.
If I use recordArray.content and model.belongsToRecord.content, the initial selection is set properly, but the selection process stops working ( the model.belongsToRecord is not properly set anymore ).
Digging in with the Ember Inspector I can see that the value on the x-select component is a PromiseObject whereas the value of the x-option component is the resolved value of the Promise.
I guess the comparison between those two with an === operator is not working.
The text was updated successfully, but these errors were encountered:
mphasize
added a commit
to mphasize/emberx-select
that referenced
this issue
May 26, 2015
I'm trying to build a select box to let the user choose a models.belongsTo property from a list of models retrieved through the store. While the selection process in general is working, the initial selection after reloading the page is not set.
x-select content=recordArray selection=model.belongsToRecord optionValuePath="content" optionLabelPath="content.title"
If I use
recordArray.content
andmodel.belongsToRecord.content
, the initial selection is set properly, but the selection process stops working ( the model.belongsToRecord is not properly set anymore ).Digging in with the Ember Inspector I can see that the value on the
x-select
component is aPromiseObject
whereas the value of thex-option
component is the resolved value of the Promise.I guess the comparison between those two with an
===
operator is not working.The text was updated successfully, but these errors were encountered: