-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add option to remove two way data binding in 2.x #121
Comments
@dgaus 2.2.0 has been released! |
I am testing the new version but it doesn't seem to work as intended. It seems that if |
You are right, what a massive glaring bug :/ I'm sorry. I'm going to try and fix this by tonight! Edit: going to create a new issue for this. |
No worries. I did a sort of fix on dgaus@50b7c33 , I'm not too happy about it, but perhaps it's useful to you.
As a workaround I'm using model.rollbackAttributes, but I would rather do it using one-way binding. |
Should actually be fixed #132! |
Version of x-select:
2.x
Expected Behavior
To change the selected option in x-select and not mutate the underlying value without an action.
Actual Behavior
It mutates the value of x-select without an action.
Description
For emberx-select v2.2.0 we would like to provide an option to remove the two way data binding we do by default. This will set us up for v3.0.0 that will permantly remove two way data binding.
Approach
I think we can wrap a simple conditional around this line.
Testing
Since the updating of the value is already abstracted out into its own method we can stub it in tests and make sure it's being called when two way data binding is enabled. And we can also assert that it doesn't get called when it's disabled.
cc: @dgaus
The text was updated successfully, but these errors were encountered: