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

groupValue and data down, actions up #16

Open
fsmanuel opened this issue Jun 18, 2015 · 8 comments
Open

groupValue and data down, actions up #16

fsmanuel opened this issue Jun 18, 2015 · 8 comments

Comments

@fsmanuel
Copy link

In order of the data down, actions up paradigm it would be great to change the behavior of groupValue.
I run into this with a readOnly or reads computed property where i lost control over groupValue after the first change.

I would suggest to remove this line and let ppl handle the change of the groupValue.

@raycohen
Copy link
Contributor

that's a breaking change, so we'd either need a version bump or to make it opt-in. I'm inclined to go opt-in. Open to a PR that accomplishes that

@miguelcobain
Copy link

@fsmanuel @raycohen, I think it is time to go full ddau.

Anyone can still keep current behavior using:

{{radio-button
    value="green"
    changed=(action (mut color)) }}

@tute
Copy link

tute commented Feb 23, 2016

that's a breaking change, so we'd either need a version bump or to make it opt-in. I'm inclined to go opt-in. Open to a PR that accomplishes that

I think a breaking change and major version bump would make sense, in line with Ember guidelines and road ahead. It would be in line with the convention of the ember frameworks to share (major) version numbers, too.

If it were opt-in, where would you expect to see the configuration? How would you name it?

Thank you, @raycohen!

@raycohen
Copy link
Contributor

I think bumping the major version to 2 and making DDAU the default behavior is probably the right path at this point. I am wondering if we can also increase the required ember version to take advantage of some of the newer features and perhaps introduce a radio-group component

@lukemelia
Copy link
Contributor

+1 to @raycohen's proposal

@raycohen
Copy link
Contributor

feedback on this PR to move towards data-down actions-up is welcome #32

to understand the concerns raised in the PR description, I recommend playing around with the dummy app.

@raycohen
Copy link
Contributor

raycohen commented Mar 1, 2016

I'm inclined to say that like input helpers the DDAU pattern doesn't fit here because it can result in the DOM being out of sync with what your application logic believes is the current value.

@Artmann
Copy link

Artmann commented Oct 10, 2017

I've added #66 which solves this issue

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

6 participants