-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RadioGroup isn't update with new value #325
Comments
Hello Sylvain, I'll take a look. |
After some research, I think the error is fire in Error :
Cause, const handleAnimatedUnmount = () => {
handleModal(false);
setTimeout(() => {
if (focusBackTo) focusBackTo.focus();
hide();
}, MODAL_ANIMATION_TIME);
}; minified as :
The root cause can be in the In replace setIsOpen={openConsentModal} by close={() => setIsModalOpen(false)} but the bug still seems to be present in some cases, I don't understand what's going on |
Up @desoindx |
Hi @desoindx |
Hi
I work on ConsentModal / ConsentService but i can't figure it out how to update all optional consents more than once. The first toggle works well but the following don't do anything (
internalConsents
is correctly updated).I think the issue may come from
RadioGroup
but i can't testMy code:
I have a function
acceptDeclineAll
which allows to modify the internal state (internalConsents
) of all the optional consents.consents
: consents saved in cookieinternalConsents
: current state of consents in the modal form not saved yet (init : copy of consents)I got an error on the second state change on a radio button :
The text was updated successfully, but these errors were encountered: