diff --git a/ui/webui/src/components/AnacondaWizard.jsx b/ui/webui/src/components/AnacondaWizard.jsx index 54273147051..5cbdf99500b 100644 --- a/ui/webui/src/components/AnacondaWizard.jsx +++ b/ui/webui/src/components/AnacondaWizard.jsx @@ -51,7 +51,7 @@ import { const _ = cockpit.gettext; export const AnacondaWizard = ({ dispatch, isBootIso, osRelease, storageData, localizationData, onAddErrorNotification, title, conf }) => { - const [isFormValid, setIsFormValid] = useState(true); + const [isFormValid, setIsFormValid] = useState(false); const [stepNotification, setStepNotification] = useState(); const [isInProgress, setIsInProgress] = useState(false); const [storageEncryption, setStorageEncryption] = useState(getStorageEncryptionState()); diff --git a/ui/webui/src/components/localization/InstallationLanguage.jsx b/ui/webui/src/components/localization/InstallationLanguage.jsx index eaadc0f7274..37139e9b4e5 100644 --- a/ui/webui/src/components/localization/InstallationLanguage.jsx +++ b/ui/webui/src/components/localization/InstallationLanguage.jsx @@ -291,6 +291,10 @@ export const InstallationLanguage = ({ idPrefix, languages, language, commonLoca readOsRelease().then(osRelease => setDistributionName(osRelease.NAME)); }, []); + useEffect(() => { + setIsFormValid(language !== ""); + }, [language, setIsFormValid]); + return (