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

Ember Click on Radio Button #19

Open
aalasolutions-zz opened this issue Aug 5, 2015 · 2 comments
Open

Ember Click on Radio Button #19

aalasolutions-zz opened this issue Aug 5, 2015 · 2 comments
Assignees

Comments

@aalasolutions-zz
Copy link

Using Ember-CLI 1.13.1. I have two radio buttons on the page

{{input type="radio" name="order_size_type" id="order_size_in_cm" checked=true}}
<label for="order_size_in_cm" {{action 'showFieldsCM' preventDefault=false}}>Cm</label>
{{input type="radio" name="order_size_type" id="order_size_in_ft"}}
<label for="order_size_in_ft" {{action 'showFieldsFT' preventDefault=false}}>Ft/In</label>

I have created two functions which simple add the hide class based on what label is clicked

There are two questions

  1. By default no radio box is checked, even I have checked=true
  2. action is applied on the Label, and it is working but when I apply that on radio it is not working

So right now I have to click the label to hide/show the content

@aalasolutions-zz
Copy link
Author

I am using Ember 1.13.5

@taras taras assigned taras and zinyando and unassigned taras Aug 25, 2015
@taras
Copy link
Member

taras commented Aug 25, 2015

@zinyando Please create an Ember Twiddle that shows how to bind value of radio elements with Ember 1.13+.

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

3 participants