t3code
t3code copied to clipboard
[Bug]: A click outside the project action editor discards the draft
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Open a thread and click Add project script in the thread details panel. The top bar's actions control and Settings → Project actions open the same Add Action / Edit Action dialog.
- Fill in a name, a command and a preview URL.
- Click the dimmed backdrop outside the dialog.
- Click Add project script again.
Expected behavior
A stray click outside keeps the dialog open with the draft. Escape, Cancel and the close button still close it. This matches how #40708 fixed the scheduled task editor.
Actual behavior
The dialog closes and the whole draft is discarded: name, command, keybinding, preview URL and toggles. Reopening it shows an empty form. There is no prompt and no way to get the draft back.
Impact
Minor bug or occasional failure
Version or commit
main @ 7f125d83d1
Environment
Linux, Chrome, web client from vp run dev. The desktop app uses the same component.
Screenshots, recordings, or supporting files
| Filled in, before the outside click | Reopened after the outside click |
|---|---|
![]() |
![]() |
Workaround
Use Escape or Cancel only on purpose, and avoid clicking outside while editing.

