Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

AvRadioGroup onChange behavior #37

Open
KaseyPowers opened this issue Oct 24, 2017 · 2 comments
Open

AvRadioGroup onChange behavior #37

KaseyPowers opened this issue Oct 24, 2017 · 2 comments
Labels

Comments

@KaseyPowers
Copy link

When adding the onChange event to an AvRadioGroup, it seems the function is called for every radio option, once with the selected value passed in correctly to the second argument, and the rest of the times with undefined.

I can understand why it acts this way, but I'm not sure if this should be the expected behavior?

@diegodesouza
Copy link

I'm experiencing the same behavior

@nikkhielseath
Copy link
Contributor

Greetings @KaseyPowers , @diegodesouza,
I might be facing a similar problem. I am not satisfied by the "for every radio option" as mentioned by @KaseyPowers .
Here is what I observe: If I log the times the event handler is called, I can see that it is been called twice for each radio option that I click.
Now, KaseyPowers has stated that the second time event handler is being called with undefined if yes then, it might explain another error that I am facing.

If you guys have achieved an understanding for this behavior then, I request that you share the same with me.

Regards
SNikhill

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants