web/admin: fix captcha stage provider selector not showing saved value#19555
web/admin: fix captcha stage provider selector not showing saved value#19555
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19555 +/- ##
==========================================
+ Coverage 93.27% 93.30% +0.03%
==========================================
Files 949 949
Lines 52131 52131
==========================================
+ Hits 48626 48643 +17
+ Misses 3505 3488 -17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-04502e4851cde85a12ba55a7d0a56546d40cb787
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-04502e4851cde85a12ba55a7d0a56546d40cb787Afterwards, run the upgrade commands from the latest release notes. |
Overview:
When editing an existing captcha stage, the Provider Type dropdown always showed "Google reCAPTCHA v2" (the first option) instead of the actual configured provider (e.g. Cloudflare Turnstile).
The root cause was using `.value=${this.selectedProvider}` on the `<select>` element, which doesn't work reliably in Lit templates. the browser selects the first `<option>` by default before the property binding takes effect.
Fixed by adding the `selected` attribute directly to each `<option>` element.
Testing:
1. Create a new captcha stage with Cloudflare Turnstile
2. Save and close the form
3. Edit the stage again
4. Verify the Provider Type dropdown shows "Cloudflare Turnstile" instead of "Google reCAPTCHA v2"
Motivation:
Closes #19550
Matches previous behavior and makes it slightly friendlier than a blank page without any help.
be46155 to
04502e4
Compare
|
|
Overview:
When editing an existing captcha stage, the Provider Type dropdown always showed "Google reCAPTCHA v2" (the first option) instead of the actual configured provider (e.g. Cloudflare Turnstile).
The root cause was using
.value=${this.selectedProvider}on the<select>element, which doesn't work reliably in Lit templates. the browser selects the first<option>by default before the property binding takes effect.Fixed by adding the
selectedattribute directly to each<option>element.Testing:
Motivation:
Closes #19550