Closed diegodesouza closed 3 years ago
Seems like Availity-React RadioGroup onChange only fires once, but Wouldn't want to rewrite the whole form because of this.
You can check for undefined
and if so ignore the value for the time being. At least that is how we have handled it as a work around.
@GoPro16 do you meant check the event
for undefined?
EDIT:
I mean, what part of the event rather, should i be checking?
One of the onChange
callbacks with have event.target
as null and the other will not.
So to understand this better, sorry for lingering on this.
onSelectInquiryType = (event) => {
event.persist();
if (event.target) {
const {store} = this.props;
store.onSelectedInquiryType(event.target.value);
}
};
The above still calls the onChange a couple of times =/
Doesn't seem to be an issue any longer
Hi quick question,
I'm wondering if there's a way to stop the AvRadioGroup onChange from firing twice?