# Feature OP-2444 - Avoid confirmation dialog in WP edit when no content was added

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-2444

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Work packages |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

The following line sets wiki-textareas to dirty/changed immediately after their creation, resulting in the ‘confirm unsaved changes’ dialog in the force edit mode, even when no data has been entered.

Additionally, the dialog is not shown when the cancel button is shown. This is somewhat inconsistent and I suggest that we correct both these behaviors.

More information:  
Relevant line that sets the textarea to changed: <https://github.com/opf/openproject/blob/dev/frontend/app/components/inplace-edit/directives/field-edit/edit-wiki-textarea/edit-wiki-textarea.directive.js\#L48>
