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:
parent
fc63aec015
commit
ff50b59126
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue