From ff50b591261bfa3160bcdb1e02f8a0d2d00b6c6e Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Tue, 23 May 2023 14:49:22 +0200 Subject: [PATCH] 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. --- .../CreateImageWizard/formComponents/Registration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/CreateImageWizard/formComponents/Registration.js b/src/Components/CreateImageWizard/formComponents/Registration.js index 1d7fdce6..75fb5dd1 100644 --- a/src/Components/CreateImageWizard/formComponents/Registration.js +++ b/src/Components/CreateImageWizard/formComponents/Registration.js @@ -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');