web/admin: fix wizards with radio selects not working correctly after use (#4933)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -36,7 +36,7 @@ export class InitialServiceConnectionWizardPage extends WizardPage {
 | 
			
		||||
            ?.querySelectorAll<HTMLInputElement>("input[type=radio]")
 | 
			
		||||
            .forEach((radio) => {
 | 
			
		||||
                if (radio.checked) {
 | 
			
		||||
                    this.host.isValid = true;
 | 
			
		||||
                    radio.dispatchEvent(new CustomEvent("change"));
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
@ -42,7 +42,7 @@ export class InitialPolicyWizardPage extends WizardPage {
 | 
			
		||||
            ?.querySelectorAll<HTMLInputElement>("input[type=radio]")
 | 
			
		||||
            .forEach((radio) => {
 | 
			
		||||
                if (radio.checked) {
 | 
			
		||||
                    this.host.isValid = true;
 | 
			
		||||
                    radio.dispatchEvent(new CustomEvent("change"));
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
@ -39,7 +39,7 @@ export class InitialPropertyMappingWizardPage extends WizardPage {
 | 
			
		||||
            ?.querySelectorAll<HTMLInputElement>("input[type=radio]")
 | 
			
		||||
            .forEach((radio) => {
 | 
			
		||||
                if (radio.checked) {
 | 
			
		||||
                    this.host.isValid = true;
 | 
			
		||||
                    radio.dispatchEvent(new CustomEvent("change"));
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
@ -41,7 +41,7 @@ export class InitialProviderWizardPage extends WizardPage {
 | 
			
		||||
            ?.querySelectorAll<HTMLInputElement>("input[type=radio]")
 | 
			
		||||
            .forEach((radio) => {
 | 
			
		||||
                if (radio.checked) {
 | 
			
		||||
                    this.host.isValid = true;
 | 
			
		||||
                    radio.dispatchEvent(new CustomEvent("change"));
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
@ -38,7 +38,7 @@ export class InitialSourceWizardPage extends WizardPage {
 | 
			
		||||
            ?.querySelectorAll<HTMLInputElement>("input[type=radio]")
 | 
			
		||||
            .forEach((radio) => {
 | 
			
		||||
                if (radio.checked) {
 | 
			
		||||
                    this.host.isValid = true;
 | 
			
		||||
                    radio.dispatchEvent(new CustomEvent("change"));
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
@ -55,7 +55,7 @@ export class InitialStageWizardPage extends WizardPage {
 | 
			
		||||
            ?.querySelectorAll<HTMLInputElement>("input[type=radio]")
 | 
			
		||||
            .forEach((radio) => {
 | 
			
		||||
                if (radio.checked) {
 | 
			
		||||
                    this.host.isValid = true;
 | 
			
		||||
                    radio.dispatchEvent(new CustomEvent("change"));
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user