Repository navigation
web/elements: keep ak-array-input edits through form submission - #27045
Merged
Merged
Conversation
Form.submit() became async in #26566 and now awaits settleFormFields() before serializing. That gives the host form a chance to re-render first, and Lit re-assigns array property bindings on every render, so `.items=${settings.footerLinks}` reset the list to the server's copy and the PUT went out with stale values. The items setter now ignores a list whose contents match the one the parent last assigned. This also fixes a long-standing keying bug. The setter's map callback had its arguments swapped, so every row got a fresh key on each change and `repeat` rebuilt it. Clicking from one field into another in the same row sent the next keystrokes into a detached input. Edits, adds and deletes now operate on the keyed list directly, and delete removes the clicked row by key instead of by index.
✅ 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 #27045 +/- ##
==========================================
- Coverage 92.36% 92.32% -0.04%
==========================================
Files 1188 1188
Lines 80005 80005
Branches 4351 4351
==========================================
- Hits 73893 73867 -26
- Misses 6046 6072 +26
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Contributor
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 39371597254 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-cd1607560dbeb0f27e69c89c2dfc929d5ee794d5
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-cd1607560dbeb0f27e69c89c2dfc929d5ee794d5Afterwards, run the upgrade commands from the latest release notes. |
BeryJu
approved these changes
Oct 20, 2026
kensternberg-authentik
added a commit
that referenced
this pull request
Oct 21, 2026
* main: (27 commits) lib/tracing: fix sentry tracing when otel is enabled (#27066) website/integrations: audiobookshelf: Fix Post Logout URI (#27074) web/user: fix agents tab flashing without license (#27069) root: bump cert-related deps due to emudhra (#27068) web: fix table fetch races and search select e2e lookups (#27059) core: bump astral-sh/uv from 0.13.1 to 0.13.3 in /lifecycle/container (#27037) policies: fix warning from setting non-string tracing data (#27062) root: annotate hot paths (#27052) website/docs: contributing: add guidelines for vendor contributions (#27032) providers/saml: Add ability to select encryption algorithm (#27009) lib: set postgres timezone on connection (#27053) core: add postgres connection info (#27024) ci: fix cargo deny for basic-toml (#27054) web/elements: keep ak-array-input edits through form submission (#27045) enterprise: optimize middleware (#27015) core: bump goauthentik/platform-ssh from 26.04-ak-0.72.0 to 26.04-ak-0.72.1 in /tests/e2e (#27038) core: bump ruff from 0.16.10 to 0.17.0 (#27044) core: bump sentry-sdk from 2.71.0 to 2.72.0 (#27043) core: bump django-postgres-extra from 3.0.0 to 3.0.1 (#27042) core: bump python-kadmin-rs from 0.7.4 to 0.7.5 (#27040) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Nov 5, 2026
* main: (21 commits) policies: fix warning from setting non-string tracing data (#27062) root: annotate hot paths (#27052) website/docs: contributing: add guidelines for vendor contributions (#27032) providers/saml: Add ability to select encryption algorithm (#27009) lib: set postgres timezone on connection (#27053) core: add postgres connection info (#27024) ci: fix cargo deny for basic-toml (#27054) web/elements: keep ak-array-input edits through form submission (#27045) enterprise: optimize middleware (#27015) core: bump goauthentik/platform-ssh from 26.04-ak-0.72.0 to 26.04-ak-0.72.1 in /tests/e2e (#27038) core: bump ruff from 0.16.10 to 0.17.0 (#27044) core: bump sentry-sdk from 2.71.0 to 2.72.0 (#27043) core: bump django-postgres-extra from 3.0.0 to 3.0.1 (#27042) core: bump python-kadmin-rs from 0.7.4 to 0.7.5 (#27040) core: bump goauthentik/selenium from 152.0-ak-0.72.0 to 152.0-ak-0.72.1 in /tests/e2e (#27039) core: bump aiohttp from 3.14.3 to 3.14.4 (#27034) web/flow: fix remember-me being cleared by CSRF token rotation (#25205) web/theme: Remove the categories build from the theme (#26982) core: bump library/golang from `2f84bc9` to `4766793` in /lifecycle/container (#26996) providers/saml: verify logoutrequest/response signatures (#26534) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
This PR fixes a regression introduced in #26566 where array inputs drop user's edits on save.
Form.submit()awaits field settling before serializing, which lets the form re-render first -- and Lit re-assigns.itemson every render, so the list snapped back to the server's copy right before the PUT. The setter now ignores a list matching the one the parent last assigned.Also fixed a row-keying bug where a setter's
mapcallback used its arguments in the wrong order, causing every edit to rebuild the row. As a result, moving between fields could send typing to a detached input. Deleting a row now uses its key instead of its index and removes the row clicked.