# Bug AGILE-550 - Board: removing an unsaved new card creates the work package anyway

Project: Stream agile
Status: merged
URL: https://community.openproject.org/work_packages/AGILE-550

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Boards, Frontend components and Primer design system |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Alexander Coles |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

Regression from "Save cards on blur" (`378afb9db5f`, 2026-11-19), on `release/18.0` and `dev`.

### Steps to reproduce

1.  Open a board with a list (permissions: manage boards, add and edit work packages).

2.  In the list, click **+ → Add new card**.

3.  Type a subject, e.g. `Discarded card`. Do not press Enter.

4.  Click the card's red **×** (Remove from list) button.

Reproduction on stage: <https://qa.openproject-stage.com/projects/TBCAG/boards/1295> (created work package `Discarded card`, <mention class="mention" data-id="15070" data-type="work_package" data-text="#15070">#15070</mention>).

### What is the buggy behavior?

The card disappears from the list, but a "Successful creation." toast appears and the work package `Discarded card` is created in the project.

### What is the expected behavior?

Removing an unsaved card discards it; no work package is created.

### Hints for QA

  - Removing the unsaved card with the keyboard also discards it: type a subject, press **Tab** to move to **×**, then press **Space** or **Enter**. No work package is created.

  - Leaving a card that has a subject for anywhere else (clicking outside the card, or tabbing past **×**) still saves it.

  - A new card without a subject stays open when it loses focus. Pressing **Enter** in it still shows the validation error.

### Logs

None.

### Screenshots and other files

See attached screen recording (N.B. the page is hard refreshed - Cmd+R after "Remove from list" is clicked).

### Environment information

**OpenProject installation type**

  - Other: QA stage instance (qa.openproject-stage.com)

**OpenProject version**

**Core build**

[f97a68b736619d6e91e2fab331c91484968ee95e](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2Ff97a68b736619d6e91e2fab331c91484968ee95e)

**Product version**

[ff3e77f4886b9ea9591ab776d18c039e67b364de](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2Fff3e77f4886b9ea9591ab776d18c039e67b364de)

**Core version**

OpenProject 18.0.0

**Browser**

- [x] Chrome

**Operating System**

- [x] Mac OS X

**Language**

English
