Giter Club home page Giter Club logo

Comments (7)

raycohen avatar raycohen commented on July 20, 2024

Sorry for the delayed response. I think the issue is that we don't support setting the checked attribute initially the way you have checked="checked" because that will clobber the property that is used internally to track value and groupValue

What happens if you remove checked="checked" ?

from ember-radio-button.

bosworthco avatar bosworthco commented on July 20, 2024

Hi, very useful addon! However this doesn't really answer the question.

Is a default 'Checked' state something that is going to be added into the functionality in the future?

from ember-radio-button.

raycohen avatar raycohen commented on July 20, 2024

The checked state is computed based on comparing the value assigned to the radio-button component and the groupValue that is passed in. When they match, the radio button will be checked.

If that isn't what you want, can you give me more information on the situation you're trying to handle?

from ember-radio-button.

cmccand avatar cmccand commented on July 20, 2024

Hi, thanks for making this. Question: if I want to grab the value of the input on the changed action, how do I access it? I'm trying to get it with jQuery and not having success...

Thanks!

from ember-radio-button.

raycohen avatar raycohen commented on July 20, 2024

@cmccand When you're handling the changed action, the groupValue property of the radio button components should be updated with the new value.

from ember-radio-button.

raycohen avatar raycohen commented on July 20, 2024

@cmccand if you can share a little of your code, the template file and action handler, I may have an easier time pointing you in the right direction

from ember-radio-button.

cmccand avatar cmccand commented on July 20, 2024

I think I have it now, setting the groupValue=value as you said did what I was looking for. Thank you!

from ember-radio-button.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.