diff --git a/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts b/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts index 44c71b0a334e..62893a6af02d 100644 --- a/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts +++ b/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts @@ -114,8 +114,8 @@ export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel { label=${msg("Client type")} .value=${provider?.clientType} required - @change=${(ev: CustomEvent) => { - this.showClientSecret = ev.detail !== ClientTypeEnum.Public; + @change=${(ev: CustomEvent<{ value: ClientTypeEnum }>) => { + this.showClientSecret = ev.detail.value !== ClientTypeEnum.Public; }} .options=${clientTypeOptions} > diff --git a/web/src/admin/events/TransportForm.ts b/web/src/admin/events/TransportForm.ts index 46fce43cb71a..1554d70079e2 100644 --- a/web/src/admin/events/TransportForm.ts +++ b/web/src/admin/events/TransportForm.ts @@ -78,8 +78,8 @@ export class TransportForm extends ModelForm { ) => { - this.onModeChange(ev.detail); + @change=${(ev: CustomEvent<{ value: NotificationTransportModeEnum }>) => { + this.onModeChange(ev.detail.value); }} .options=${[ { diff --git a/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts b/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts index 95bb9fdaedfc..c98ae860f193 100644 --- a/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts @@ -210,8 +210,8 @@ export class OAuth2ProviderFormPage extends ModelForm { label=${msg("Client type")} .value=${provider?.clientType} required - @change=${(ev: CustomEvent) => { - this.showClientSecret = ev.detail !== ClientTypeEnum.Public; + @change=${(ev: CustomEvent<{ value: ClientTypeEnum }>) => { + this.showClientSecret = ev.detail.value !== ClientTypeEnum.Public; }} .options=${clientTypeOptions} >