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

action not fired when expected #36

Closed
optikalefx opened this issue Jun 28, 2015 · 2 comments
Closed

action not fired when expected #36

optikalefx opened this issue Jun 28, 2015 · 2 comments

Comments

@optikalefx
Copy link

Using this for the first time.

given this example

{{#x-select id="age-group" value=ageGroup action="selectAgeGroup"}}
    {{#x-option}}Select Age Group...{{/x-option}}
    {{#x-option value="18-25"}}18-25{{/x-option}}
    {{#x-option value="25-35"}}25-35{{/x-option}}
    {{#x-option value="35-55"}}35-55{{/x-option}}
    {{#x-option value="55+"}}55+{{/x-option}}
{{/x-select}}

when action is fired, it receives the previous value. So if I change to "25-35" from "18-25". this.get("ageGroup") is 18-25. Not the new value.

The only way I can get this to work is to use an observer. That has the correct value.

@optikalefx
Copy link
Author

/cc @rosshadden

Robdel12 added a commit that referenced this issue Jul 2, 2015
In the blockless form the options values list didn't have proper
dependent keys so it wasn't being recomputed. Possibly related to #36.
@Robdel12
Copy link
Collaborator

Robdel12 commented Jul 2, 2015

I'm going to close this because I can't replicated on current master. If this comes up again I'll reopen :)

@Robdel12 Robdel12 closed this as completed Jul 2, 2015
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

2 participants