CreateImageWizard/Registration: use PF4 property names

By using the standard HTML property name, PF4 considered the Radio
uncontrolled. This causes warnings in the console.

By using the correct property names, PF4 correctly considers the
component controlled.
This commit is contained in:
Sanne Raymaekers 2023-05-23 14:49:22 +02:00 committed by Klara Simickova
parent fc63aec015
commit ff50b59126

View file

@ -166,7 +166,7 @@ const Registration = ({ label, ...props }) => {
data-testid="registration-radio-now"
name="register-system"
id="register-system-now"
checked={registerSystem.startsWith('register-now')}
isChecked={registerSystem.startsWith('register-now')}
onChange={() => {
change(input.name, 'register-now-rhc');
}}
@ -240,7 +240,7 @@ const Registration = ({ label, ...props }) => {
data-testid="registration-radio-later"
id="register-system-later"
label="Register later"
checked={registerSystem === 'register-later'}
isChecked={registerSystem === 'register-later'}
onChange={() => {
setShowOptions(false);
change(input.name, 'register-later');