Skip to content

Modal closes when switching browser window/tab while filling form #4851

Description

@CyrilDEVIA

To Reproduce

  1. Open any creation modal (e.g. Create Database)
  2. Start filling in the form
  3. Switch to another browser window or tab to copy a password or any info
  4. Return to Dokploy
  5. Modal is closed, all data is lost

Related issues: #2400, #2372

Current vs. Expected behavior

Following the steps above, I expected the modal to stay open when the browser loses focus, but instead the modal closes instantly on window blur, losing all entered data.

Tested on multiple browsers (same behavior).

Provide environment information

Operating System: macOS 26 (Apple Silicon M4, arm64)
Dokploy version: v0.29.12
Browser: Chrome 150.0.7871.128 (arm64) + tested on another browser (same behavior)

Which area(s) are affected? (Select all that apply)

Databases

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions