ember-radio-button
ember-radio-button copied to clipboard
Changes on master have not yet been released
Latest released version is 2.0.1. Changes on master would fix many deprecations.
Agree – @lukemelia would it be possible to cut a release? 🙇🏻
I tested latest master in our app and it was broken, might be worth adding some tests and doing some debugging before releasing.
What was broken? Just migrated an app from the older package ember-radio-buttons (plural) to latest master and didn't have any issues.
@gilest groups of buttons no longer worked at all, they acted independently and their actions wouldn't fire.
Any update of an ETA for the 3.X release? Thank you.
I'm happy to cut a release but need help confirming or fixing master's functionality.
@lukemelia What exactly seems to be the problem? I cloned the project and ran the tests and they all pass. Console is clean, no deprecation warnings or anything.
@lukemelia Just tested latest master on our project... nothing seems wrong. Works as expected. Am I missing something?
@gilest groups of buttons no longer worked at all, they acted independently and their actions wouldn't fire.
I didn't manage to verify this although I may not have tested all usages. Working in production for a client pinned at b2ab65f (latest master commit).
OK, I'll go ahead with a 3.0.0-beta.0 and we'll see how it goes. Thanks all.
Thanks a lot, much appreciated!!
Released as https://github.com/yapplabs/ember-radio-button/releases/tag/v3.0.0-beta.0
Please give it a whirl and let me know if it is working for you.
@lukemelia Just added this last update to our project. So far so good, tested a few of the places we're using radio buttons in, nothing out of the ordinary so far, no errors, no warnings. Passed it on to our QA to have a deeper look.
Also we have pretty good test coverage for our project and all of the tests pass.
Thanks for the update @vmoglan. Keep us posted here.
I'm no longer working on the project I had issues with so can't retest, though I'm starting to have a theory that it might have been due to either usage of string actions or a yarn bug that can happen when installing from a GitHub url.
@runspired 👍 Thanks for following up.
@lukemelia perhaps my last update, our QA ran automated + manual tests and everything worked as expected. I think this may be good to go.
Hi,
how do I install version 3, as mentioned in the readme. When I read the guides it only really covers how to install npm or yarn packages. e.g ember install ember-cli-sass
What would I do with a zip file?
@Benjy1979 I think ember install [email protected] should do
I've been using 3.0.0-beta.0 in my app (Ember 4.6) and haven't run into any issues yet. Are there any remaining steps before the official release of 3.0.0?
I think the issue is when a closure changed action isn't provided, the expected native behavior doesn't work for apps that are still working through a mix of old and new syntax.
In v2, there was a computed-aware update to groupValue -- the commented code is still present (but obviously won't work if uncommented):
https://github.com/yapplabs/ember-radio-button/blob/732619a8557bd0ecc5f5e769426940bde1c52c1b/addon/components/radio-button-input.js#L16-L20
I ran into this when a set of has-block RadioButton components provided neither the @name argument nor changed, and relied instead on responding to the update of groupValue. Instead, clicking any of them persisted the current selection, and added the just-clicked input to the selection.
When I supplied the "name" argument, I got the expected "radio button" interaction (only one could be selected), but still didn't have the expected reactivity (since the component was using computed properties based on the value passed in as groupValue).
When I provided the change callback, I was able to drive the reactivity as expected, through this.set in the calling component. I am not currently able to test whether the change action is still optional, as that component is very firmly backed into computed properties at the moment.