Skip to content

[Maintenance] - Clear Form State only on Cancel #4346

Description

@staysgt

Description

When you click outside a task (or hit escape), our NERModal closes and the form resets, same as hitting cancel button. This keeps happening by accident. Form state shouldn't clear unless the user explicitly clicks 'cancel'.

Acceptance Criteria

  • clicking outside the modal or pressing escape no longer closes it or clears the form; only clicking cancel does

Proposed Solution

  • in NERModal.tsx, change Dialog's onClose={onHide} to receive (event, reason) and ignore backdropClick/escapeKeyDown instead of always calling onHide

Mocks

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions