# Bug DREAM-1044 - Reopening inline create after cancelling shows no Subject field

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-1044

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Work packages, Frontend components and Primer design system |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | Yes |
| Pull preview |  |
| List | a11y report 2026 |
| 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 |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

Searched open work packages for similar reports on 13/11/2026: none found.

### Steps to reproduce

1.  Open the work packages table of a project you can add work packages to (reproduced with an empty table).

2.  Click "Create new work package" (or Tab to it and press **Enter**). The inline create row opens with the Subject field focused.

3.  Cancel the row with the X (click, or Tab to it and press **Enter**).

4.  Click "Create new work package" again (or press **Enter** on it again).

### What is the buggy behavior?

The inline create row opens again, but the Subject cell shows "-" instead of an input, and nothing is focused (focus falls back to the page). Pointer users can click the Subject cell to open the field. Keyboard users cannot: the cell is not focusable, **Shift+Tab** moves to the table header row and **Tab** only reaches the X.

Cause: cancelling removes the inline create row but keeps the table's edit form for the new work package. Reopening reuses that form, which still lists Subject as an active field, so the field is not activated again in the new row.

### What is the expected behavior?

Every time the inline create row opens, the Subject field is active and focused, as on the first open.

### **Logs**

No console errors.

### Screenshots and other files

None supplied yet.

### Environment information

**OpenProject installation type**

Other: local development environment

**OpenProject version**

`release/18.0` at `c76f688f3b3` (also with the <mention class="mention" data-id="OP-20770" data-type="work_package" data-text="#OP-20770">#OP-20770</mention> fix applied).

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (specify)

**Operating System**

- [ ] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (specify distro)
- [ ] Chrome OS
- [ ] Other (specify)

**Language**

English (browser and OpenProject user language)

### Technical notes

Paths under `frontend/src/`, `release/18.0`.

  - Cancel calls `removeWorkPackageRow()` (`app/features/work-packages/components/wp-inline-create/wp-inline-create.component.ts:363-368`). It removes the row and cancels the changeset, but leaves `table.editing.forms['new']` in place.
  - On reopen, `startEditing` returns that stale form (`app/features/work-packages/components/wp-fast-table/wp-table-editing.ts:108-113`), and `activateWhenNeeded` skips `subject` because `activeFields.subject` is still set (`app/shared/components/fields/edit/edit-form/edit-form.ts:164`).
  - Fix direction: in `removeWorkPackageRow`, destroy the form and `delete table.editing.forms[wpId]`. Add a spec for cancel → reopen.
