Skip to content

Conversation

@dominic-r
Copy link
Member

when a form inside a modal submits successfully, it dispatches an EVENT_REFRESH event that bubbles up through the DOM. Parent components like TablePage listen for this event to refresh their data. so, when the parent component refreshes/re-renders in response to EVENT_REFRESH, it destroys and recreates the entire row including the modal element and that causes the modal to disappear even though the ModalForm component never explicitly closed it.

closes: #14321

when a form inside a modal submits successfully, it dispatches an EVENT_REFRESH event that bubbles up through the DOM. Parent components like TablePage listen for this event to refresh their data.
so, when the parent component refreshes/re-renders in response to EVENT_REFRESH, it destroys and recreates the entire row including the modal element and that causes the modal to disappear even
though the ModalForm component never explicitly closed it.
@dominic-r dominic-r requested a review from GirlBossRush October 7, 2025 02:04
@dominic-r dominic-r requested a review from a team as a code owner October 7, 2025 02:04
@netlify
Copy link

netlify bot commented Oct 7, 2025

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit e9024b5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/68e47521b678b600085864c7
😎 Deploy Preview https://deploy-preview-17277--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Oct 7, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit e9024b5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/68e475217b77cf0007a171d7
😎 Deploy Preview https://deploy-preview-17277--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Oct 7, 2025

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit e9024b5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/68e4752177c2cc0007f887b2
😎 Deploy Preview https://deploy-preview-17277--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dominic-r dominic-r added backport/version-2025.8 Add this label to PRs to backport changes to 2025.8 area:frontend Features or issues related to the browser, TypeScript, Node.js, etc labels Oct 7, 2025
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.91%. Comparing base (90d5cf2) to head (e9024b5).
⚠️ Report is 11 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17277      +/-   ##
==========================================
- Coverage   92.91%   92.91%   -0.01%     
==========================================
  Files         855      855              
  Lines       46499    46499              
==========================================
- Hits        43206    43204       -2     
- Misses       3293     3295       +2     
Flag Coverage Δ
e2e 46.05% <ø> (+0.07%) ⬆️
integration 23.05% <ø> (-0.06%) ⬇️
unit 91.04% <ø> (+<0.01%) ⬆️
unit-migrate 91.09% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2025

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-e9024b58d79d09d196c7052ed608847829f4142f
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-e9024b58d79d09d196c7052ed608847829f4142f

Afterwards, run the upgrade commands from the latest release notes.

@GirlBossRush GirlBossRush merged commit 9090831 into main Oct 7, 2025
112 checks passed
@GirlBossRush GirlBossRush deleted the sdko/fix-close-after-submit-on-modal-form branch October 7, 2025 13:21
authentik-automation bot pushed a commit that referenced this pull request Oct 7, 2025
…it (#17277)

when a form inside a modal submits successfully, it dispatches an EVENT_REFRESH event that bubbles up through the DOM. Parent components like TablePage listen for this event to refresh their data.
so, when the parent component refreshes/re-renders in response to EVENT_REFRESH, it destroys and recreates the entire row including the modal element and that causes the modal to disappear even
though the ModalForm component never explicitly closed it.
@authentik-automation
Copy link
Contributor

🍒 Cherry-pick to version-2025.8 created: #17299

dominic-r added a commit that referenced this pull request Oct 7, 2025
…it (cherry-pick #17277 to version-2025.8) (#17299)

web: Fix behavior for modals configured with closeAfterSuccessfulSubmit (#17277)

when a form inside a modal submits successfully, it dispatches an EVENT_REFRESH event that bubbles up through the DOM. Parent components like TablePage listen for this event to refresh their data.
so, when the parent component refreshes/re-renders in response to EVENT_REFRESH, it destroys and recreates the entire row including the modal element and that causes the modal to disappear even
though the ModalForm component never explicitly closed it.

Co-authored-by: Dominic R <dominic@sdko.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2025.8 Add this label to PRs to backport changes to 2025.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Property Mapping Test Closes Immediately

3 participants