-
Notifications
You must be signed in to change notification settings - Fork 80
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
Value and/or selection set to null on tear down. #65
Comments
So this issue is not happing on tear down it is happening when ember data saves a object with associations. For instance I have a When saving the |
…ntent changes. I have decided using the data down actions up paradigm to be more manageable. change `selection` property to oneWay. remove `value` property.
This is strange. I'm using this component with Ember Data and didn't have any problems. Please tell us some more info, like the template you're using, etc.
This part makes me confused. Is it because your backend isn't returning the association? |
@miguelcobain yes when saving the Task the server responds with the associations side loaded. I am not sure what the template is. |
@arenoir I was experiencing the same issues, but my problem was, that I've specified value & selection to the property:
and it caused random results ) |
Hey! Having the same issue here... I have a CRUD for a model. First time the page renders, everything works awesome as expected, then I go back to index and the back to the same route and BAM, my selections (model.myProperty) became null :/ Any idea? |
Please give us some details like the template you're using. It's working fine here. |
I have this issue when the following happens:
This is due to how selectize works. Basically the possible options become non-existing, and selectize assumes that the current options was deselected, thus the Solutions are welcome. |
@miguelcobain I have transitioned to a DDAU approach. It is not ideal but at least I can prevent the mutation in the I think a completely ember select component is needed. I started a addon its a start and would appreciate your input. |
@arenoir @miguelcobain indeed, Ember 2.x road will be all about DDAU, I think there's a lot of stuff to do on ember-cli-selectize in order to be fully compatible with it (and error free) |
@arenoir Maybe we should join forces: https://github.com/miguelcobain/ember-select |
I am running into issues when the content changes during tear down of the component. It appears the
_onItemRemove
function is being called thus setting the value to null. I think moving to the data down actions up methodology will fix this problem.So before I attempt this I thought I would ask how should this work?
I feel this component should two way bind a value as well a support
ddau
. I am thinking thevalue
property should be a two way binding andselection
a one way binding.So one can either use the
value
property or theselection
property with theselect-item
action.Is this a good approach?
The text was updated successfully, but these errors were encountered: