availity-reactstrap-validation
availity-reactstrap-validation copied to clipboard
AvRadioGroup onChange behavior
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?
I'm experiencing the same behavior
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